UNPKG

level-filesystem

Version:

Full implementation of the fs module on top of leveldb

16 lines (15 loc) 348 B
var test = require('./helpers/test'); test('fchmod', function(fs, t) { fs.writeFile('/foo', 'bar', function() { fs.open('/foo', 'r', function(err, fd) { fs.fchmod(fd, 0655, function(err) { t.notOk(err); fs.stat('/foo', function(err, stat) { t.notOk(err); t.same(stat.mode, 0655); t.end(); }); }); }); }); });