Skip to content

fix: keep absPath to one slash at / - #104

Merged
HaoZeke merged 1 commit into
developfrom
fix/abspath-root-join
Nov 27, 2026
Merged

HaoZeke merged 1 commit into
developfrom
fix/abspath-root-join

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

fix: keep absPath to one slash at /

absPath joined the working directory to a relative path by always
inserting /. When that directory is /, the result starts with
//, and normPath keeps both slashes. os.path.abspath joins as
posixpath.join does, so the same paths start with /.

tempDirPath used the same join. Both add / only when the
working directory does not already end in one.

`absPath` joined the working directory to a relative path by always
inserting `/`. When that directory is `/`, the result starts with
`//`, and `normPath` keeps both slashes. `os.path.abspath` joins as
`posixpath.join` does, so the same paths start with `/`.

`tempDirPath` used the same join. Both add `/` only when the
working directory does not already end in one.
@HaoZeke
HaoZeke merged commit 7c77183 into develop Nov 27, 2026
8 checks passed
@HaoZeke
HaoZeke deleted the fix/abspath-root-join branch November 27, 2026 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant