Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use built in mkdir instead? #12

Open
jimmywarting opened this issue Sep 20, 2021 · 0 comments
Open

use built in mkdir instead? #12

jimmywarting opened this issue Sep 20, 2021 · 0 comments

Comments

@jimmywarting
Copy link

jimmywarting commented Sep 20, 2021

write/index.js

Lines 183 to 186 in f537eb6

const mkdir = (dirname, options) => {
return new Promise(resolve => fs.mkdir(dirname, options, () => resolve()));
};

Node fs has mkdir built in with recursive mode available as a promise method
https://nodejs.org/api/fs.html#fs_fspromises_mkdir_path_options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant