Skip to content
Browse files

Added 'mode' to another mkdir command for Node 0.4 compat.

  • Loading branch information...
1 parent f0ae5a9 commit 4be74700bfe2b85ae0d9a06e12f243f785185941 @mde mde committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/utils/file.js
View
2 lib/utils/file.js
@@ -41,7 +41,7 @@ var fileUtils = new (function () {
targetDir = path.join(to, filename);
// We don't care if the target dir already exists
try {
- fs.mkdirSync(targetDir);
+ fs.mkdirSync(targetDir, opts.mode || 0755);
}
catch(e) {
if (e.code != 'EEXIST') {

0 comments on commit 4be7470

Please sign in to comment.
Something went wrong with that request. Please try again.