Skip to content

Ignore errors in fs.exists#401

Merged
tschaub merged 1 commit intomainfrom
exists
Oct 31, 2024
Merged

Ignore errors in fs.exists#401
tschaub merged 1 commit intomainfrom
exists

Conversation

@tschaub
Copy link
Copy Markdown
Owner

@tschaub tschaub commented Oct 31, 2024

Node's fs.exists() never throws. And the fs.existsSync() is called with false on any errors.

Fixes #400.

@tschaub tschaub merged commit 533ff93 into main Oct 31, 2024
@tschaub tschaub deleted the exists branch October 31, 2024 01:42
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.

fs.existsSync mock incorrectly throws ENOTDIR when the real fs.existsSync returns false

1 participant