Skip to content

Commit

Permalink
Changed 0777 to process.umask().
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Pedro committed Feb 24, 2011
1 parent caa972a commit 9b5074a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/fs.js
Expand Up @@ -14,7 +14,7 @@ for (var fun in fs) {
* are given to the completion callback.
*/
function mkdir_p (path, mode, callback, position) {
mode = mode || 0777;
mode = mode || process.umask();
position = position || 0;
parts = require('path').normalize(path).split('/');

Expand Down Expand Up @@ -79,4 +79,8 @@ exports.mkdirSync = function (path, mode, recursive) {
} else {
mkdir_p(path, mode);
}
}
}

exports.watchDir = function (path) {

}

0 comments on commit 9b5074a

Please sign in to comment.