13 lines
270 B
JavaScript
13 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 };
|
||
|
});
|
||
|
}
|