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

Prevent recursive mkdir to the root path while saving #443

Merged
merged 4 commits into from
Apr 12, 2022

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Apr 12, 2022

In the platform that allows to save the file into the root by default (Windows), fs.mkdir with recursive option to the drive root would fail by the permission error EPERM.

I've updated File class to prevent calling mkdirp if the output directory is the root.

Fix #442.

@yhatt yhatt merged commit f92858b into main Apr 12, 2022
@yhatt yhatt deleted the recursive-mkdirp-to-the-root branch April 12, 2022 15:00
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

Successfully merging this pull request may close these issues.

Cannot output the conversion result into the drive root
1 participant