Todo.txt-Enyo/srv/ReadDirAssistant.js

10 lines
259 B
JavaScript
Raw Normal View History

2012-03-06 19:32:49 +00:00
var ReadDirAssistant = function() {
}
ReadDirAssistant.prototype.run = function(future) {
var fs = IMPORTS.require("fs");
var path = this.controller.args.path;
fs.readdir(path, function(err, files) { future.result = { path: path, files: files }; });
}