mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Merge branch 'temp'
This commit is contained in:
commit
138884da60
@ -18,12 +18,14 @@ private func scanFiles(at path: String, olderThan minTimestamp: Int32, anyway: (
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if let value = resourceValues[.contentModificationDateKey] as? NSDate {
|
if let value = resourceValues[.contentModificationDateKey] as? NSDate {
|
||||||
|
var unlinked = false
|
||||||
if Int32(value.timeIntervalSince1970) < minTimestamp {
|
if Int32(value.timeIntervalSince1970) < minTimestamp {
|
||||||
if let file = url.path {
|
if let file = url.path {
|
||||||
f(file)
|
f(file)
|
||||||
|
unlinked = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let file = url.path {
|
if let file = url.path, !unlinked {
|
||||||
if let size = (resourceValues[.fileSizeKey] as? NSNumber)?.intValue {
|
if let size = (resourceValues[.fileSizeKey] as? NSNumber)?.intValue {
|
||||||
anyway((file, size, Int32(value.timeIntervalSince1970)))
|
anyway((file, size, Int32(value.timeIntervalSince1970)))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user