Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "co-fs-plus", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "'co-fs' plus, supports `fs.walk` etc.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -0,15 +1,13 @@ | ||
var co = require('co'); | ||
var fs = require('..'); | ||
var co = require('co'); | ||
co(function *() { | ||
var files = yield fs.walk('../') | ||
console.log(files); | ||
describe('.walk()', function () { | ||
it('should work', function (done) { | ||
co(function *() { | ||
var files = yield fs.walk('test/fixtures') | ||
files.should.have.length(1); | ||
files[0].should.equal('test/fixtures/msg.txt'); | ||
})(done); | ||
}); | ||
}); | ||
var files = yield fs.readdir('.', { // Recursively, excudes hidden files. | ||
filterFilename: function (filename) { | ||
return filename[0] != '.'; | ||
} | ||
}, []); | ||
console.log(files); | ||
})(); | ||
4262
7
110