Directory

public enum Directory

A convenient enumeration to specify a target directory.

Supported values are documents and caches. To define subdirectories use instances of the StoreOptions struct.

  • The documents directory of the app.

    Declaration

    Swift

    case documents
  • The caches directory of the app. Usually used for temporary files.

    Declaration

    Swift

    case caches
  • The URL to directory.

    Declaration

    Swift

    public func url() -> URL