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

missing fs.mkdir #5

Open
DustinWehr opened this issue Sep 3, 2024 · 0 comments
Open

missing fs.mkdir #5

DustinWehr opened this issue Sep 3, 2024 · 0 comments

Comments

@DustinWehr
Copy link

DustinWehr commented Sep 3, 2024

maybe bug only affects nested folders. simple fix to put this whole block in a closure --I called it delayed-- and then do

let folderPath = path.dirname(documentFile.path);
fs.mkdir(folderPath, {recursive: true}, function(err) {
    delayed();
})

happy to submit a PR if this repo is still maintained.

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