aboutsummaryrefslogtreecommitdiff
path: root/src/os/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/file.go')
-rw-r--r--src/os/file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/file.go b/src/os/file.go
index ec8ad70660..c3ee31583e 100644
--- a/src/os/file.go
+++ b/src/os/file.go
@@ -45,8 +45,8 @@ package os
import (
"errors"
+ "internal/filepathlite"
"internal/poll"
- "internal/safefilepath"
"internal/testlog"
"io"
"io/fs"
@@ -766,7 +766,7 @@ func (dir dirFS) join(name string) (string, error) {
if dir == "" {
return "", errors.New("os: DirFS with empty root")
}
- name, err := safefilepath.Localize(name)
+ name, err := filepathlite.Localize(name)
if err != nil {
return "", ErrInvalid
}