Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Originally, this package was documented to be for paths separated by forward slashes, but I was recently pointed to the updated package description, which amended the documentation (see https://go-review.googlesource.com/32423) and added: > To manipulate operating system paths, use the path/filepath package. A later patch (https://go-review.googlesource.com/45653) tweaked the description again, adding to the `path/filepath` package: > To process paths such as URLs that always use forward slashes regardless of > the operating system, see the path package. And to the `path` package > This package does not deal with Windows paths with drive letters or backslashes; > to manipulate operating system paths, use the path/filepath package. I expect it to be "fine" in general to use the `path` package for Unix/Linux, but from both patches, the intent of the Go maintainers is to use `path/filepath` for anything file(system) related, so let's adapt to that. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- Loading branch information