Squirrel Logo

Dir::Purge - Purge directories to a given number of files

Johan Vromans
Software


Description

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.

Examples

From the command-line:

  perl -MDir::Purge -e 'purgedir (5, @ARGV)' /spare/backups

From your Perl program:

  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");
Current version
1.0
Archived
CPAN sites. The CPAN search engine will find it for you.
Alternatively, you can look in directory authors/Johan_Vromans for file Dir-Purge-x.y.tar.gz, where x.y indicates the version number.


Powered by Template Toolkit

© Copyright 2003-2007 Johan Vromans. All Rights Reserved.
This site was created using the TT2Site Site Builder.
software/sw_dirpurge.html last modified 19:22:29 10-May-2004

Valid HTML 4.01 Transitional