DownloadOptions
public struct DownloadOptions: OptionSet
A collection of options to be executed prior to moving a downloaded file from the temporary URL to the destination URL.
-
Returns the raw bitmask value of the option and satisfies the
RawRepresentableprotocol.Declaration
Swift
public let rawValue: UInt -
A
DownloadOptionsflag that creates intermediate directories for the destination URL if specified.Declaration
Swift
public static let createIntermediateDirectories = DownloadOptions(rawValue: 1 << 0) -
A
DownloadOptionsflag that removes a previous file from the destination URL if specified.Declaration
Swift
public static let removePreviousFile = DownloadOptions(rawValue: 1 << 1) -
Creates a
DownloadFileDestinationOptionsinstance with the specified raw value.Declaration
Swift
public init(rawValue: UInt)
View on GitHub
DownloadOptions Struct Reference