You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I came across a problem cleaning "old" files using the remove_ut.pyscript.
Listing the files on my Linux OS said the files were from somewhere in June (different dates/times). Today it is september 5th, and I wanted to clean all files older than 72 hours. But files were not cleaned. Checking one of the files using statI saw this:
As the trollmoves clean script go on the ctime I thought the files should have been cleaned. But on Linux ctime is not the creation time, but:
stat.ST_CTIME
The “ctime” as reported by the operating system. On some systems (like Unix) is the time of the last metadata change, and, on others (like Windows), is the creation time (see platform documentation for details).
Something in my system seem to have changed the metadata in the file, though I have not actively done anything to the files there.
So, in this case it would have been better for me to use the mtime or perhaps the atime.
Describe the solution you'd like
So, we would need a way to confugure which measure should be used to determine the age of a file. So, that it is up to the user to decide. Default could be ctime.
Describe any changes to existing user workflow
Are there any backwards compatibility concerns? Changes to the build process? Additional dependencies?
Additional context
Have you considered any alternative solutions or is there anything else that would help describe your request.
The text was updated successfully, but these errors were encountered:
Feature Request
Is your feature request related to a problem? Please describe.
I came across a problem cleaning "old" files using the
remove_ut.py
script.Listing the files on my Linux OS said the files were from somewhere in June (different dates/times). Today it is september 5th, and I wanted to clean all files older than 72 hours. But files were not cleaned. Checking one of the files using
stat
I saw this:As the trollmoves clean script go on the
ctime
I thought the files should have been cleaned. But on Linuxctime
is not the creation time, but:Something in my system seem to have changed the metadata in the file, though I have not actively done anything to the files there.
So, in this case it would have been better for me to use the
mtime
or perhaps theatime
.Describe the solution you'd like
So, we would need a way to confugure which measure should be used to determine the age of a file. So, that it is up to the user to decide. Default could be
ctime
.Describe any changes to existing user workflow
Are there any backwards compatibility concerns? Changes to the build process? Additional dependencies?
Additional context
Have you considered any alternative solutions or is there anything else that would help describe your request.
The text was updated successfully, but these errors were encountered: