https://github.com/powerman/winfilepath
winfilepath is a copy of Golang path/filepath with Windows behavior on all platforms
https://github.com/powerman/winfilepath
filepath go golang golang-library windows
Last synced: 1 day ago
JSON representation
winfilepath is a copy of Golang path/filepath with Windows behavior on all platforms
- Host: GitHub
- URL: https://github.com/powerman/winfilepath
- Owner: powerman
- License: mit
- Created: 2025-08-22T23:44:21.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-04-13T20:00:55.000Z (2 months ago)
- Last Synced: 2026-04-20T03:51:16.100Z (2 months ago)
- Topics: filepath, go, golang, golang-library, windows
- Language: Go
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# winfilepath is a copy of path/filepath with Windows behavior on all platforms
[](LICENSE)
[](https://go.dev/)
[](https://github.com/powerman/winfilepath/actions/workflows/test.yml)
[](https://github.com/powerman/winfilepath/actions/workflows/test.yml)
[](https://goreportcard.com/report/github.com/powerman/winfilepath)
[](https://github.com/powerman/winfilepath/releases/latest)
[](https://pkg.go.dev/github.com/powerman/winfilepath)



Most of the code is copied from Go 1.25.0 path/filepath package
with minimal modification needed to make it work on all OSes in same way as on Windows,
except for actual file access functions which panics on non-Windows.
It is mostly useful to process Windows file paths on non-Windows OSes,
e.g. test your code which runs on Windows on your native OS.