Dir::Purge 1.02
Sponsored Links
Dir::Purge 1.02 Ranking & Summary
File size:
0.006 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
5817
Date added:
2007-04-24
Publisher:
Johan Vromans
Publisher URL:
http://search.cpan.org/~j
Dir::Purge 1.02 description
Dir::Purge is a Perl module to purge directories to a given number of files.
SYNOPSIS
perl -MDir::Purge -e purgedir (5, @ARGV) /spare/backups
use Dir::Purge;
purgedir ({keep => 5, strategy => "by_age", verbose => 1}, "/spare/backups");
use Dir::Purge qw(purgedir_by_age);
purgedir_by_age (5, "/spare/backups");
Dir::Purge implements functions to reduce the number of files in a directory according to a strategy. It currently provides one strategy: removal of files by age.
By default, the module exports one user subroutine: purgedir.
The first argument of purgedir should either be an integer, indicating the number of files to keep in each of the directories, or a reference to a hash with options. In either case, a value for the number of files to keep is mandatory.
The other arguments are the names of the directories that must be purged. Note that this process is not recursive. Also, hidden files (name starts with a .) and non-plain files (e.g., directories, symbolic links) are not taken into account.
All directory arguments and options are checked before anything else is done. In particular, all arguments should point to existing directories and the program must have read, write, and search (execute) access to the directories.
One additional function, purgedir_by_age, can be exported on demand, or called by its fully qualified name. purgedir_by_age calls purgedir with the "by age" purge strategy preselected. Since this happens to be the default strategy for purgedir, calling purgedir_by_age is roughly equivalent to calling purgedir.
SYNOPSIS
perl -MDir::Purge -e purgedir (5, @ARGV) /spare/backups
use Dir::Purge;
purgedir ({keep => 5, strategy => "by_age", verbose => 1}, "/spare/backups");
use Dir::Purge qw(purgedir_by_age);
purgedir_by_age (5, "/spare/backups");
Dir::Purge implements functions to reduce the number of files in a directory according to a strategy. It currently provides one strategy: removal of files by age.
By default, the module exports one user subroutine: purgedir.
The first argument of purgedir should either be an integer, indicating the number of files to keep in each of the directories, or a reference to a hash with options. In either case, a value for the number of files to keep is mandatory.
The other arguments are the names of the directories that must be purged. Note that this process is not recursive. Also, hidden files (name starts with a .) and non-plain files (e.g., directories, symbolic links) are not taken into account.
All directory arguments and options are checked before anything else is done. In particular, all arguments should point to existing directories and the program must have read, write, and search (execute) access to the directories.
One additional function, purgedir_by_age, can be exported on demand, or called by its fully qualified name. purgedir_by_age calls purgedir with the "by age" purge strategy preselected. Since this happens to be the default strategy for purgedir, calling purgedir_by_age is roughly equivalent to calling purgedir.
Dir::Purge 1.02 Screenshot
Sponsored Links
Dir::Purge 1.02 Keywords
Purge 1.02
DirPurge
number of files
Perl module
directories
age
number
files
Perl
purge
Dir::Purge 1.02
Libraries
Programming
Bookmark Dir::Purge 1.02
Dir::Purge 1.02 Copyright
WareSeeker periodically updates pricing and software information of Dir::Purge 1.02 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Dir::Purge 1.02 Edition. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Dir::Purge 1.02 Related Software
PHP News Ticker is a news ticker that is easy to manage, easy to add to, and easy to purge old news from.
My Software
You have not saved any software. Click "Save" next to each software to save it to your software basket
Related Information
Sponsored Links
TOP POPULAR DOWNLOAD