FileManager
public extension FileManager
-
Returns the document directory URL.
Declaration
Swift
var documentDirectoryURL: URL? { get }
-
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 failsDeclaration
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 failsDeclaration
Swift
func cachesDirectoryURL() throws -> URL?
Return Value
The caches directory URL