Skip to content

FsLocal.access: use async fs.access instead of incorrect fs.statSync#289

Merged
warpdesign merged 1 commit into
masterfrom
fslocal-rewrite-exists
Nov 14, 2022
Merged

FsLocal.access: use async fs.access instead of incorrect fs.statSync#289
warpdesign merged 1 commit into
masterfrom
fslocal-rewrite-exists

Conversation

@warpdesign
Copy link
Copy Markdown
Owner

@warpdesign warpdesign commented Nov 14, 2022

There is no need to call fs.stat to check the existence of a file/dir, especially not sync version.

Use async version of fs.access instead.

Note that there are other calls that should be fixed too.

Fixes #130

@warpdesign warpdesign merged commit b55117f into master Nov 14, 2022
@warpdesign warpdesign deleted the fslocal-rewrite-exists branch November 14, 2022 21:57
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.

Rewrite FsLocal.exists

1 participant