Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.547.243 Times

Dir::Purge 1.02

  Date Added: February 25, 2010  |  Visits: 658

Dir::Purge

Report Broken Link
Printer Friendly Version


Product Homepage
Download (76 downloads)



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..

Requirements: No special requirements
Platforms: Linux
Keyword: Age Directories Dirpurge Files Libraries Number Number Of Files Perl Perl Module Programming Purge
Users rating: 0/10

License: Freeware Size: 6.14 KB
USER REVIEWS
More Reviews or Write Review


DIR::PURGE RELATED
Modules  -  Feeds directory fetcher 6.x-1.1
This is a very simple little module that provides a new feeds fetcher to the feeds module that fetches new files from a directory of files.All you need to do is point it at a directory on your webserver, and it will fetch a new file if one is...
10 KB  
Utilities  -  NOYBcryption for Mac OS 1.0.6
You can use NOYBcryption to encrypt (and decrypt) single files or entire folders of files. And you can then freely transport the files via FTP, email attachment, flash drive, etc. without risk of data loss. The only person who will be able to...
1.6 MB  
File Synchronizers  -  ext2hide 1.0.0 RC1
ext2hide allows the user to save and restore an arbitrary number of files to and from the reserved space in an ext2/3 filesystems primary and backup superblocks. Using ext2hide, you can use this reserved section to store an arbitrary number of...
33.79 KB  
Book Collection Managers  -  Encrypt Folders 1.0.0.15
Encrypt Folders software is the most popular and free software to encrypt your personal folders and files. By using this prominent tool, you can lock your personal folders, files (documents, images, audios, videos, etc). The main purpose of...
15.06 MB  
Utilities  -  Memlockd 0.03
Memlockd project locks a list of files into RAM so that if the system starts paging excessively (as the result of a DOS attack or buggy program), the sysadmin will still be able to login to recover it. The project will lock regular files as well...
7.17 KB  
File Restoration  -  EASEUS Deleted File Recovery 2.1.1
EASEUS Deleted File Recovery is a powerful and free file undeletion solution for Window Operation System. It is capable to recover the lost files even after a deletion with the SHIFT key held down or the recycle bin has been emptied. It can...
5.91 MB  
Finance  -  RHash 1.2.8.1
RHash (Recursive Hasher) is a console utility for computing and verifying hash sums of files. It supports CRC32, MD4, MD5, SHA1, SHA256, SHA512, Tiger, DC++ TTH, BitTorrent BTIH, ED2K, AICH, GOST R 34.11-94, RIPEMD-160, HAS-160, EDON-R 256/512,...
 
Backup Utilities  -  DFIncBackup Home 2.98
DFIncBackup is a personal backup program designed for incremental backup of files directly to zip archives. It can backup to CD/DVD, Ext USB HDD, Flash, HDD, LAN. One archive can contain several folders from different disk volumes and any...
3.96 MB  
Image Galleries  -  fig2ps 1.3.6
fig2ps is a perl script designed to convert Xfig files to postscript or PDF files, processing text using LaTeX.
 
Modules  -  Upload max files 6.x-1.1
Limit the number of files a user can attach to nodes of a specific type.upload_maxfiles lets you limit the number of files that can be attached to a node on a per node type base. Additionally you can add the permission to 'upload unlimited files'...
10 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB