remove-ps-dir
v1.0.2
Published
A module to remove directory's that are named after their process id
Downloads
2
Maintainers
Readme
remove-ps-dir
A module to remove directory's that are named after their process id.
I created this module while needing a clean way for the clustered node processes to have a dedicated directory, but also have some clean up happen once they died.
Install
$ npm install --save remove-ps-dir
Usage
var ps = require('remove-ps-dir');
// A valid path to a folder I want to remove dead
// workers usually a temp folder
ps.remove('/tmp', function(err,removedPaths){
if (err) {
return err;
}
});
License
MIT © Ernie Casilla