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

12 lines
270 B
JavaScript

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