Merge branch 'temp'

This commit is contained in:
overtake 2020-07-14 21:22:33 +03:00
commit 138884da60

View File

@ -18,12 +18,14 @@ private func scanFiles(at path: String, olderThan minTimestamp: Int32, anyway: (
continue
}
if let value = resourceValues[.contentModificationDateKey] as? NSDate {
var unlinked = false
if Int32(value.timeIntervalSince1970) < minTimestamp {
if let file = url.path {
f(file)
unlinked = true
}
}
if let file = url.path {
if let file = url.path, !unlinked {
if let size = (resourceValues[.fileSizeKey] as? NSNumber)?.intValue {
anyway((file, size, Int32(value.timeIntervalSince1970)))
}