Document how to test if a file exists #6752
Labels
doc
Issues and PRs related to the documentations.
fs
Issues and PRs related to the fs subsystem / file system.
good first issue
Issues that are suitable for first-time contributors.
fs
The documentation for
fs
could use some work. Useful utilities likeexists
are being deprecated with nothing more than a note to use other operations and check the error. The problem is, there is no documentation for which errors you should expect to see. I know from experimentation thatENOENT
seems to tell me that a file does not exist, but that is not documented.If we just had a section explaining what a file system error looks like and a list of all of the codes, that would be a huge help in knowing how to properly write code for different scenarios.
The text was updated successfully, but these errors were encountered: