Cache icon indicating copy to clipboard operation
Cache copied to clipboard

remove older files not recent

Open boduoduo opened this issue 2 years ago • 2 comments

boduoduo avatar Jun 14 '22 06:06 boduoduo

Wait, are you telling me this code was wrong all this time and no one noticed? :O

3lvis avatar Jun 21 '22 17:06 3lvis

I viewed the apple developer document,timeIntervalSinceReferenceDate returns the interval between the date object and 00:00:00 UTC on 1 January 2001, so if using time1 > time2, the recent files will be in the front of the files sorted, and they will be removed in advance.

boduoduo avatar Jun 28 '22 07:06 boduoduo