0.0.8 • Published 10 years ago

maxdirs v0.0.8

Weekly downloads
13
License
-
Repository
-
Last release
10 years ago

maxdirs

A utility to trim the subdirectories in a directory based on a maximum, deletes oldest first.

Installation

As a command line tool

$ sudo npm install -g maxdirs

As a libary $ npm install maxdirs

Command line

$ maxdirs

If the number of sub-directories within directory exceeds maxNumberOfSubdirectories, the necessary count will be recursively deleted.

As a library

$ var maxdirs = require('maxdirs');

$ maxdirs.purge(directory, maxNumberOfSubdirectories, callback);

callback takes (err, numberDeleted).

See test/purge.js for an example.

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago