Todo.txt-Enyo/srv/ReadDirAssistant.js
2012-03-06 14:32:49 -05:00

10 lines
No EOL
259 B
JavaScript

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 }; });
}