aboutsummaryrefslogtreecommitdiff
path: root/src/os/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/path.go')
-rw-r--r--src/os/path.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os/path.go b/src/os/path.go
index a46c20bfd2..42de603ae1 100644
--- a/src/os/path.go
+++ b/src/os/path.go
@@ -5,6 +5,7 @@
package os
import (
+ "internal/filepathlite"
"syscall"
)
@@ -43,7 +44,7 @@ func MkdirAll(path string, perm FileMode) error {
// If there is a parent directory, and it is not the volume name,
// recurse to ensure parent directory exists.
- if parent := path[:i]; len(parent) > len(volumeName(path)) {
+ if parent := path[:i]; len(parent) > len(filepathlite.VolumeName(path)) {
err = MkdirAll(parent, perm)
if err != nil {
return err