CleanFileName
public struct CleanFileName : Codable, Equatable, TDFunction
Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously
-
Undocumented
Declaration
Swift
public typealias Result = Text
-
File name or path to the file
Declaration
Swift
public let fileName: String
-
Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously
Declaration
Swift
public init(fileName: String)
Parameters
fileName
File name or path to the file