-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed
Labels
fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.pathIssues and PRs related to the path subsystem.Issues and PRs related to the path subsystem.
Description
- Version: v15.2.0 and v16.0.0-pre
- Platform: Linux hp 4.15.0-126-generic test: fix test-fs-symlink-dir-junction-relative #129-Ubuntu SMP Mon Nov 23 18:50:32 UTC 2020 i686 i686 i686 GNU/Linux
- Subsystem: fs, repl, linux
What is the bug?
Every time in the REPL:
> console.log(require('fs').realpathSync('~'));
Uncaught:
Error: ENOENT: no such file or directory, lstat '/home/raisinten/Desktop/universe/temp/project/~'
at Object.realpathSync (node:fs:1753:7) {
errno: -2,
syscall: 'lstat',
code: 'ENOENT',
path: '/home/raisinten/Desktop/universe/temp/project/~'
}What is the expected behavior?
> console.log(require('fs').realpathSync('~'));
/home/raisinten
undefinedMetadata
Metadata
Assignees
Labels
fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.pathIssues and PRs related to the path subsystem.Issues and PRs related to the path subsystem.