Test if dir exists before calling ensureDir
Test if dir exists before calling ensureDir

From node.js documentation

On Windows, using fs.mkdir() on the root directory even with recursion will result in an error:

fs.mkdir('/', { recursive: true }, (err) => {
 // => [Error: EPERM: operation not permitted, mkdir 'C:\']
});

James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop