1.0.1 • Published 9 years ago

pruneold v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

pruneold  Build Status

Prune old files from a directory so that the folder maintains a max size. This is useful to implement a file system cache

var pruneold = require('pruneold')

pruneold(
  '/path/to/a/folder',
  10 * 1024, // max size in bytes
  function (err) {
    // this will called after the pruning
  })

Acknowledgements

This project was kindly sponsored by nearForm.

License

MIT