UNPKG

level-filesystem

Version:

Full implementation of the fs module on top of leveldb

14 lines (12 loc) 300 B
var test = require('./helpers/test'); test('lstat', function(fs, t) { fs.writeFile('/test.txt', 'hello', function(err) { fs.symlink('/test.txt', '/foo', function(err) { fs.lstat('/foo', function(err, stat) { t.ok(!err); t.ok(stat.isSymbolicLink()); t.end(); }); }); }); });