The FMPFile.Builder class is a builder for the FMPFile class.
class Builder
Method | Description |
remotePath(_:) |
Save path to file or directory on server to variable. func remotePath(_ path: String) -> Builder Parameters:
|
mount(_:) | Save name of connection to storage on server to variable. func mount(_ mount: String) -> Builder Parameters:
|
isDirectory(_:) | Save type - file or directory - to variable. func isDirectory(_ isDirectory: Bool = true) -> Builder Parameters:
|
localPath(_:) | Save path to file or directory in the application local directory relative to the Documents folder to variable. func localPath(_ path: String) -> Builder Parameters:
|
depth(_:) | Save depth of work with directory to variable. func depth(_ depth: Int) -> Builder Parameters:
|
build() | Build an instance of the FMPFile class. It returns the object of the FMPFile type. func build() -> FMPFile |
Build an instance of the FMPFile class:
// Build an instance of the FMPFile class with various settings
let file: FMPFile = fmp.file
.remotePath("remotePath") // By default "."
.mount("mount") // By default ""
.isDirectory() // By default false
.localPath("localPath") // By default ""
.depth(2) // By default -1
.build()
See also: