Skip to content

fix(util): Path.parent now works on windows (#1168) #1179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

xudyang1
Copy link
Contributor

On Windows, both forward slash / and backslash \\ work as the path separator. Linux and MacOS can have backslash as a valid filename character.

Unit tests are also provided for each platform because Path.parent depends on the local variable sep which depends on jit.os.

Fixes #1168

xudyang1 and others added 2 commits May 21, 2024 14:05
On Windows, both forward slash `/` and backslash `\\` work as the path
separator. Linux and MacOS can have backslash as a valid filename
character.

Unit tests are also provided for each platform because `Path.parent`
depends on the local variable `sep` which depends on `jit.os`.

Fixes L3MON4D3#1168
@xudyang1 xudyang1 closed this May 21, 2024
@xudyang1 xudyang1 deleted the fix/path_parent branch May 21, 2024 18:15
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.

Windows: friendly snippets not loaded
1 participant