diff options
| author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2011-05-29 13:03:49 +1000 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2011-05-29 13:03:49 +1000 |
| commit | 0f4510b3707bc1b8cfbcdfeed609524d00f5c1ca (patch) | |
| tree | 5e25f25183693786906a917ca9e595c84c8baa56 /src/pkg/path/filepath/path_plan9.go | |
| parent | 505f0bb3ce55871b7c79cfcd34fa468f5cee73ef (diff) | |
| download | go-0f4510b3707bc1b8cfbcdfeed609524d00f5c1ca.tar.xz | |
os: fix os.MkdirAll with backslash path separator.
MkdirAll() need to use isSeparator().
Move primary defines of filepath.Separator/filepath.ListSeparator
to os.PathSeparator/os.PathListSeparator.
Move filepath.isSeparator() to os.IsPathSeparator().
filepath package refer them from os package.
Fixes #1831.
R=rsc, alex.brainman
CC=golang-dev
https://golang.org/cl/4535100
Diffstat (limited to 'src/pkg/path/filepath/path_plan9.go')
| -rw-r--r-- | src/pkg/path/filepath/path_plan9.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/pkg/path/filepath/path_plan9.go b/src/pkg/path/filepath/path_plan9.go index e40008364c..47990e0fe0 100644 --- a/src/pkg/path/filepath/path_plan9.go +++ b/src/pkg/path/filepath/path_plan9.go @@ -6,16 +6,6 @@ package filepath import "strings" -const ( - Separator = '/' // OS-specific path separator - ListSeparator = 0 // OS-specific path list separator -) - -// isSeparator returns true if c is a directory separator character. -func isSeparator(c uint8) bool { - return Separator == c -} - // IsAbs returns true if the path is absolute. func IsAbs(path string) bool { return strings.HasPrefix(path, "/") || strings.HasPrefix(path, "#") |
