Re: DELFILES utility
By: Psi-Jack to All on Wed Jul 01 2015 09:32 am
So, I was wondering why, certain file bases I have setup to keep track
of X number of files, but no max age, weren't getting deleted..
Specifically nodelist fileecho's and the likes.
So it seems that DELFILES itself only acts on file bases that have an
actual max age.. Is there no actual way to get delfiles to keep the
latest X files and delete the older ones, without using the max age?
No, that is not a feature of delfiles. I'm not sure how that would work anyway: how would delfiles (or Sychronet) know that nlst001.zip was a never version nlst000.zip (or whatever the naming scheme was). Or were you thinking that all revisions of the same file would use the same filename?
No, that is not a feature of delfiles. I'm not sure how that would
work anyway: how would delfiles (or Sychronet) know that
nlst001.zip was a never version nlst000.zip (or whatever the
naming scheme was). Or were you thinking that all revisions of
the same file would use the same filename?
Hmmm, well, really, I was thinking of just by age alone, if a max
number of files is setup and the file base exceeds that number, it
would purge out the older files by the overall age of all the other
files. I'm guessing that the filebase database has the date to which
it was uploaded/added, so if, for example, in a NODELIST fileecho for
FidoNet, I set Max Files to 12, I would effectively keep only the past
3 months of files, while older ones would be deleted.
Purge By Age could do this similarly, yes, but it poses the potential
problem that IF new files aren't being added, for whatever reason, you
could end up with an empty directory should the problem persist and no
new files ever get added appropriately.
Thoughts?
I never considered only purging older files when files are added. And since there aer so many ways to add files, that's probably not practical. The source code for DELFILES is in CVS and that functionality could be added relatively easy.
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 585 |
Nodes: | 8 (0 / 8) |
Uptime: | 26:58:33 |
Calls: | 10,757 |
Files: | 5 |
Messages: | 452,126 |