Open
Description
Not sure if I have to open a new issue, but there is exactly the same problem with
process.cwd()
. It resolves symlinks if there are any and this is not documented. I believe this also should at least be clarified in the docs.Also, I think there should be a way to have the ability to find out both
cwd
and__filename
/__dirname
without symlinks resolved. Forcwd()
that can be an optional argument, for__dirname
that can be some new module variables like__dirnamePreserveSymlinks
.Or maybe these things should respect
--preserve-symlinks
cli option. They are not doing this at least on mac os.
Originally posted by @romamik in #22602 (comment)
Metadata
Metadata
Assignees
Labels
No labels