plentiful-files
v0.0.5
Published
Abstract layer for managing big sets of files
Downloads
3
Maintainers
Readme
plentiful-files
Async library for managing big sets of files. Implements 5 only needed functions for file managment: exists, read, write, unlink, list.
Installation
npm install plentiful-files
Usage
Set up:
var pf = require('plentiful-files');
var pfInstance = new pf({
prefix: 'PF',
dir: './myfiles/'
});
Exists:
pfInstance.exists(fileid, function(exists, err) {
...
});
Read:
pfInstance.read(fileid, function(err, data) {
...
});
pfInstance.read(fileid, function(err, data) {
...
}, false);
Write:
Unlink:
List: