Skip to content

Commit

Permalink
Implementing mkdirSync.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala committed May 10, 2011
1 parent 19b85d0 commit cd96a10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ exports.rmdir = Async(exports.rmdirSync);
* Synchronous mkdir(2).
*/
exports.mkdirSync = function mkdirSync(path, mode) {
throw new Error("Not implemented");
let fd = new FileDescriptor(path);
return fd.create(Ci.nsIFile.DIRECTORY_TYPE, Mode(mode));
};
/**
* Asynchronous mkdir(2). No arguments other than a possible exception are
Expand Down

0 comments on commit cd96a10

Please sign in to comment.