No description or website provided.
JavaScript
Latest commit 6e1ea6f Jan 10, 2012 Andris Reinman update
Permalink
Failed to load latest commit information.
LICENSE initial import Jan 10, 2012
README.md initial import Jan 10, 2012
index.js update Jan 10, 2012
package.json initial import Jan 10, 2012

README.md

TEMPFILES

Tempfiles removes all files from a directory.

Installation

npm install tempfiles

Usage

  • cleanPeriodically(dir, ttl, callback) - starts a timer to clean files that are older than ttl (in seconds)

Example:

var tempfiles = require("tempfiles");

tempfiles.cleanPeriodically("/tmp/ttl", 60, function(err, timer){
    if(!err)
        console.log("Cleaning periodically directory /tmp/ttl");
});