DirectoryHelper

open class DirectoryHelper : PathHelper

DiretoryHelper provides actions for an directory.

Author

Adamas

Version

1.5.0

Date

23/03/2019
  • The path list of all contents in a directory. Nil if the data doesn’t exist or there is an error.

    Declaration

    Swift

    public var content: [String]? { get }
  • Create the directory recrusively.

    Declaration

    Swift

    @discardableResult
    public func createDirectory() -> Bool?

    Return Value

    Whether the directory has been created or not. Nil if there is an error.

  • Whether the directory exists or not.

    Declaration

    Swift

    public override var isExisted: Bool { get }