FileHelper
open class FileHelper : PathHelper
FileHelper is used to perform file related action.
Version
1.5.0Date
29/03/2019-
The data of a file. Nil if the file doesn’t exists or there is an error.
Declaration
Swift
public var content: Data? { get }
-
Create a file in the path.
Declaration
Swift
public func createFile(with data: Data) -> Bool?
Parameters
data
The data used to create the file.
Return Value
whether the file has been created or not. Nil if there is an error.
-
Whether the file exists or not.
Declaration
Swift
public override var isExisted: Bool { get }