Skip to content

Commit d123a76

Browse files
benswinburneDeviaVir
authored andcommitted
Changed mkdir to mkdirs (mkdir -p) (#164)
1 parent 13bd9f8 commit d123a76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Lambda.prototype._cleanDirectory = function (codeDirectory, callback) {
259259
throw err;
260260
}
261261

262-
fs.mkdir(codeDirectory, function (err) {
262+
fs.mkdirs(codeDirectory, function (err) {
263263
if (err) {
264264
throw err;
265265
}
@@ -438,7 +438,7 @@ Lambda.prototype.package = function (program) {
438438
} catch(err) {
439439
if (err.code === 'ENOENT') {
440440
console.log('=> Creating package directory');
441-
fs.mkdirSync(program.packageDirectory);
441+
fs.mkdirsSync(program.packageDirectory);
442442
} else {
443443
throw err;
444444
}

0 commit comments

Comments
 (0)