You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since C:\Windows exists, it should print a slice with one element.
Actual behavior
It panicked with the following error:
stat static prefix ./C:/Windows: stat C:/Windows: invalid argument
filepath.ToSlash(`C:\Windows`) returns "C:/Windows". The function didn't seem to consider the C: drive letter and misunderstood that the path was relative.
The text was updated successfully, but these errors were encountered:
Related to #19. I saw this comment. So I used
filepath.ToSlash
but it still doesn't work in this case.Repro
Run the following code on Windows:
Expected behavior
Since
C:\Windows
exists, it should print a slice with one element.Actual behavior
It panicked with the following error:
filepath.ToSlash(`C:\Windows`)
returns"C:/Windows"
. The function didn't seem to consider theC:
drive letter and misunderstood that the path was relative.The text was updated successfully, but these errors were encountered: