FileManager
extension FileManager
-
generate a logfile (absolute) path in the users .documentDirectory with specified filename or default
Note: this function does not check for previous existence of any file.
Declaration
Swift
public static func logfilePath(_ filename: String = "logfile.txt") -> StringParameters
filenamethe name for the logfile or default: ‘logfile.txt’
Return Value
The absolute path for a logfile