12345678910111213141516171819202122232425262728293031323334353637 |
- import Foundation
- public struct DiskConfig {
-
- public let name: String
-
-
- public let expiry: Expiry
-
- public let maxSize: UInt
-
- public let directory: URL?
- #if os(iOS) || os(tvOS)
-
-
- public let protectionType: FileProtectionType?
- public init(name: String, expiry: Expiry = .never,
- maxSize: UInt = 0, directory: URL? = nil,
- protectionType: FileProtectionType? = nil) {
- self.name = name
- self.expiry = expiry
- self.maxSize = maxSize
- self.directory = directory
- self.protectionType = protectionType
- }
- #else
- public init(name: String, expiry: Expiry = .never,
- maxSize: UInt = 0, directory: URL? = nil) {
- self.name = name
- self.expiry = expiry
- self.maxSize = maxSize
- self.directory = directory
- }
- #endif
- }
|