UNPKG

level-filesystem

Version:

Full implementation of the fs module on top of leveldb

16 lines (14 loc) 324 B
var octal = require('octal') var test = require('./helpers/test'); test('chmod', function(fs, t) { fs.mkdir('/foo', function() { fs.chmod('/foo', octal(755), function(err) { t.notOk(err); fs.stat('/foo', function(err, stat) { t.notOk(err); t.same(stat.mode, octal(755)); t.end(); }); }); }); });