Options

public struct Options : OptionSet

A set of options to be executed prior to moving a downloaded file from the temporary URL to the destination URL.

  • Specifies that intermediate directories for the destination URL should be created.

    Declaration

    Swift

    public static let createIntermediateDirectories: DownloadRequest.Options
  • Specifies that any previous file at the destination URL should be removed.

    Declaration

    Swift

    public static let removePreviousFile: DownloadRequest.Options
  • Returns the raw bitmask value of the option and satisfies the RawRepresentable protocol.

    Declaration

    Swift

    public let rawValue: Int
  • Declaration

    Swift

    public init(rawValue: Int)