Skip to content

Commit

Permalink
Merge pull request #304 from boduoduo/fix/sortedIssue
Browse files Browse the repository at this point in the history
remove older files not recent
  • Loading branch information
3lvis authored Aug 27, 2024
2 parents d2e8f5a + 08de6c4 commit 24e4710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Shared/Storage/DiskStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ extension DiskStorage {
let sortedFiles = objects.sorted {
if let time1 = $0.resourceValues.contentModificationDate?.timeIntervalSinceReferenceDate,
let time2 = $1.resourceValues.contentModificationDate?.timeIntervalSinceReferenceDate {
return time1 > time2
return time1 < time2
} else {
return false
}
Expand Down

0 comments on commit 24e4710

Please sign in to comment.