Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d061822

Browse files
committed
create folder recursively
1 parent 21be7ef commit d061822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/pretest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function makeCredentialsFile() {
2222
function makeTestImageFolders() {
2323
function makeOne(folderPath, info) {
2424
if(!common.doesDirExist(folderPath)) {
25-
fs.mkdirSync(folderPath);
25+
fs.mkdirSync(folderPath, {recursive: true});
2626
logger('initialize ' + info);
2727
} else logger(info + ' is present');
2828
}

0 commit comments

Comments
 (0)