Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove older files not recent #304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

boduoduo
Copy link

No description provided.

@3lvis
Copy link
Collaborator

3lvis commented Jun 21, 2022

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

@boduoduo
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants