eightshift-libs icon indicating copy to clipboard operation
eightshift-libs copied to clipboard

Consider using realpath instead of manually constructing paths

Open mbmjertan opened this issue 3 years ago • 0 comments

Describe your feature request

The realpath function seems to provide similar functionality to what we're doing (mostly) manually or with helpers constructing the paths by concatenating their parts with DIRECTORY_SEPARATOR. It also resolves paths into absolute paths, and is cached.

Describe the solution you'd like

Consider using realpath instead of the current approach.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in this repo.

Yes

Please confirm that you have searched in our documentation and couldn't find the answer.

Yes

mbmjertan avatar Jul 25 '22 12:07 mbmjertan