FileManager

public extension FileManager

Public Properties

  • Returns the document directory URL.

    Declaration

    Swift

    var documentDirectoryURL: URL? { get }

Public Functions

  • Returns the application support directory URL, attempting to create it if it does NOT exist.

    Throws

    If checking the URL is reachable fails OR if creation of the directory fails

    Declaration

    Swift

    func applicationSupportDirectoryURL() throws -> URL?

    Return Value

    The application support directory URL

  • Returns the caches directory URL, attempting to create it if it does NOT exist.

    Throws

    If checking the URL is reachable fails OR if creation of the directory fails

    Declaration

    Swift

    func cachesDirectoryURL() throws -> URL?

    Return Value

    The caches directory URL