Options

public struct Options : OptionSet

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

  • A DownloadOptions flag that creates intermediate directories for the destination URL if specified.

    Declaration

    Swift

    public static let createIntermediateDirectories: DownloadRequest.Options
  • A DownloadOptions flag that removes a previous file from the destination URL if specified.

    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
  • Creates a DownloadRequest.Options instance with the specified raw value.

    Declaration

    Swift

    public init(rawValue: Int)

    Parameters

    rawValue

    The raw bitmask value for the option.

    Return Value

    A new DownloadRequest.Options instance.