Commit 8f07ceb2 by Alexander Bazo

Add directory check to library download

parent 8e1b9b6c
......@@ -25,6 +25,14 @@ function downloadFile(source, target) {
});
}
// Make sure vendors folder exists
if (!fs.existsSync("vendors")){
fs.mkdirSync("vendors");
}
// Download all file
for (let i = 0; i < fileList.length; i++) {
let file = fileList[i];
downloadFile(file.url, file.localPath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment