Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 4be74700bfe2b85ae0d9a06e12f243f785185941 1 parent f0ae5a9
@mde mde authored
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') {
Please sign in to comment.
Something went wrong with that request. Please try again.