Skip to content

cleanFileName

Function · TDLib 1.8.67 · d1085f9c

Removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called synchronously

cleanFileName(
  file_name: string
) → Text

file_name

string

File name or path to the file