create-wasm-app icon indicating copy to clipboard operation
create-wasm-app copied to clipboard

mkdirp

Open majg0 opened this issue 7 years ago • 1 comments

If the optional folder is more than one level deep, mkdirSync will fail. I know this is true for some node versions at least, but I have not checked the latest if the API changed (I doubt it). One solution is use package mkdirp, another is manually splitting path string and creating a folder for each.

majg0 avatar Oct 11 '18 20:10 majg0

Note: this uses fs.exists too, but Node.js recommends issuing fs.stat to check for a folder's existence. I don't know how any of those functions react to multiple dirs away.

majg0 avatar Oct 11 '18 20:10 majg0