Virtual FS is a general inmemory chaching template
- Inmemory json fs
- List of files and folders
- Read files
- System (utimens, truncate)
- Create directories
- Remove directories
- Create files
- Remove files
- Write into files
- Handle rename
- Crypto-cache caching
- Middleware calls
- Separete encrypted cache from package
- Secure fs premissions
var debouncy = require('debouncy');
var sync = debouncy(function(data) {
return data;
}, 1000, null);
var Dummy = function() {
};
Dummy.prototype.fetch = function(json, callback) {
setTimeout(function() {
return callback(null, 'hello world');
}, 2000);
};
Dummy.prototype.sync = function(json, callback) {
sync(json);
callback();
};
Dummy.prototype.post = function(json, buffer, callback) {
callback();
};
Dummy.prototype.del = function(json, callback) {
callback();
};
module.exports = Dummy;
- Tests for mountpoints
- Test readdir listing
- Test file writes
- Test symlinks
- Test directories mk/rm
- Test file moving
- Test removes
- Test recursive removes
BSD