Skip to main content

Function: createSanitizedFileName()

createSanitizedFileName(fileName: string): string

Defined in: electron/services/database/dataBackupService/sanitizeBackupFileName.ts:38

Produces a filesystem-safe file name.

Parameters

fileName

string

Returns

string

Remarks

This is used for user-controlled file names that are persisted to disk. The output is constrained to a conservative character set to avoid path traversal and invalid/reserved filenames (especially on Windows).