hyperoslo / Cache

:package: Nothing but Cache.
Other
2.96k stars 335 forks source link

removeResourceObjects sortedFiles should return time1 < time2 #302

Closed ywz364kf closed 5 months ago

ywz364kf commented 2 years ago

let sortedFiles = objects.sorted { if let time1 = $0.resourceValues.contentModificationDate?.timeIntervalSinceReferenceDate, let time2 = $1.resourceValues.contentModificationDate?.timeIntervalSinceReferenceDate { return time1 > time2 } else { return false } } this will remove recent file, generally speaking should remove the file which older not the recent

SymbolStar commented 1 year ago

any update???

3lvis commented 1 year ago

@SymbolStar Hi, this project isn't actively supported and currently is 100% community driven, if you send us a PR with a fix I am happy to review it.

3lvis commented 5 months ago

Closing, reason outdated issue.