Skip to content

relativePath("foo", ".") returns wrong path #13211

Closed
@timotheecour

Description

@timotheecour

relativePath("foo", ".") returns wrong path

Example

echo relativePath("foo", ".")

Current Output

../foo

Expected Output

foo

this is clearly wrong, eg:
pwd
/Users/timothee/git_clone/nim/nimterop
which itself contains ./nimterop
echo relativePath("nimterop", ".").toAbsolute should return /Users/timothee/git_clone/nim/nimterop/nimterop
but instead returns /Users/timothee/git_clone/nim/nimterop

Possible Solution

  • In file xyz there is a call that might be the cause of it.

Additional Information

  • recent devel e11ecc8
  • even relativePath("foo".normalizedPath, ".".normalizedPath) returns the wrong path

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