PersistentAI API Documentation / @persistentai/fireflow-vfs / path / validateFilename
Function: validateFilename()
validateFilename(
name):ValidationResult
Defined in: packages/fireflow-vfs/src/path/validation.ts:60
Validate a filename (single path segment).
Rules:
- Cannot be empty
- Cannot exceed MAX_FILENAME_LENGTH
- Cannot contain invalid characters (control chars, <, >, :, ", |, ?, *, , /)
- Cannot be a reserved name (., .., .keep, .gitkeep)
- Cannot start or end with spaces
Parameters
name
string
The filename to validate
Returns
Validation result