-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Open
Labels
discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Description
Refs: #35403
Currently, the project has 2 outcomes for different realpath
functions with empty string arguments:
fs.realpathSync('') // Returns CWD
await util.promisify(fs.realpath)('') // Returns CWD
await fs.promises.realpath('') // ENOENT Error
fs.realpathSync.native('') // ENOENT Error
await util.promisify(fs.realpath.native)('') // ENOENT Error
IMO, this should be standardized to
(A) Always throw
(B) Always return CWD
(C) Return CWD for non-.native
calls, throw otherwise
Metadata
Metadata
Assignees
Labels
discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.