Skip Menu |

This queue is for tickets about the File-Remove CPAN distribution.

Report information
The Basics
Id: 119192
Status: open
Priority: 0/
Queue: File-Remove

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.21_00
Fixed in: (no value)



Subject: Remove old files
Could you add an option "mtime" which is a DateTime object saying that only files modified before a given time will be deleted?
Hi Nigel! On Fri Dec 09 22:00:11 2016, NHORNE wrote: Show quoted text
> Could you add an option "mtime" which is a DateTime object saying that > only files modified before a given time will be deleted?
Such an option will be welcome but note that instead of a DateTime option it should be the number of seconds since the epoch (e.g: the return of time() or https://metacpan.org/pod/DateTime#dt-epoch ) in order to avoid unnecessary dependencies. I suppose that pull-requests/patches (with tests) would be welcome, or I will tend to that in my copious free time (hah!). Regards, -- Shlomi