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

Add flag to use last access time (where supported) to determine age for file removal #361

Open
atc0005 opened this issue Nov 8, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Nov 8, 2021

Either instead of last modification time or in an either/or scenario:

  • if X days since last modified
  • if Y days since last access

The scenario is pruning files from a temporary directory unpacked by a scanning tool (e.g., data discovery, classification and protection tool). In that scenario, the file modification time is less useful as the files are unmodified from their packed format and could be from years ago, but the access time would presumably vary based on the last time the file was read/scanned.

I've not prototyped this assumption, so it might be that the original access time is preserved making this flag/feature less useful.

I vaguely recall that filesystems can be tuned to not record last access times (noatime ?), which would also make this feature less useful.

For those reasons, it's probably best to add a second flag for using mod time and make it the default behavior if neither flag is specified.

@atc0005 atc0005 added enhancement New feature or request config file config labels Nov 8, 2021
@atc0005 atc0005 added this to the Future milestone Nov 8, 2021
@atc0005 atc0005 self-assigned this Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant