Skip to content

Create only if the directory does not exist #557

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DennisHill
Copy link

statSync only performs a catalogue creation operation if it encounters a situation where the catalogue does not exist.

When other errors are encountered, such as permissions problems, the create directory operation should not be performed, but rather the error should be thrown out to make it easier to find the real problem.

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.

1 participant