diff options
Diffstat (limited to 'src/os/types_windows.go')
-rw-r--r-- | src/os/types_windows.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os/types_windows.go b/src/os/types_windows.go index 16042fea51..c83fa4c353 100644 --- a/src/os/types_windows.go +++ b/src/os/types_windows.go @@ -5,6 +5,7 @@ package os import ( + "internal/filepathlite" "internal/godebug" "internal/syscall/windows" "sync" @@ -338,7 +339,7 @@ func (fs *fileStat) loadFileId() error { // and set name from path. func (fs *fileStat) saveInfoFromPath(path string) error { fs.path = path - if !isAbs(fs.path) { + if !filepathlite.IsAbs(fs.path) { var err error fs.path, err = syscall.FullPath(fs.path) if err != nil { |