Skip to content

Create only if the directory does not exist - #557

Merged
cthackers merged 1 commit into
cthackers:masterfrom
DennisHill:DennisHill-patch-1
Apr 1, 2026
Merged

cthackers merged 1 commit into
cthackers:masterfrom
DennisHill:DennisHill-patch-1

Conversation

@DennisHill

Copy link
Copy Markdown
Contributor

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.

@cthackers
cthackers merged commit 840bfdf into cthackers:master Apr 1, 2026
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.

2 participants