Todo.txt-Enyo/srv/MakeDirAssistant.js

13 lines
270 B
JavaScript
Raw Normal View History

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