File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ final public class DiskStorage<Key: Hashable, Value> {
1717
1818 private let transformer : Transformer < Value >
1919 private let hasher = Hasher . constantAccrossExecutions ( )
20- // private var defaultFileAttributes: [FileAttributeKey : Any]?
2120
2221 // MARK: - Initialization
2322 public convenience init ( config: DiskConfig , fileManager: FileManager = FileManager . default, transformer: Transformer < Value > ) throws {
@@ -84,9 +83,6 @@ extension DiskStorage: StorageAware {
8483 let expiry = expiry ?? config. expiry
8584 let data = try transformer. toData ( object)
8685 let filePath = makeFilePath ( for: key)
87- // var attributes = defaultFileAttributes!
88- // attributes[.modificationDate] = expiry.date
89- //
9086 _ = fileManager. createFile ( atPath: filePath, contents: data, attributes: nil )
9187 try fileManager. setAttributes ( [ . modificationDate: expiry. date] , ofItemAtPath: filePath)
9288 }
You can’t perform that action at this time.
0 commit comments