Skip to content

Is resolve really effectful? #20

Closed

Description

@paluh

As usual thanks for providing all these bindings!

I'm able to resolve paths which don't exist on my machines so I'm not sure if resolve should be treated as effectful function. Am i missing something?

Activity

  1. hdgarrood commented on Apr 19, 2021

    @hdgarrood
    Member

    It is, because it can give you access to the current working directory:

    If, after processing all given path segments, an absolute path has not yet been generated, the current working directory is used.

    https://nodejs.org/api/path.html#path_path_resolve_paths

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions