lib/fs: Fix MkdirAll failure due to \\?\ (fixes #4762) (#4763)

This commit is contained in:
Simon Frei
2018-02-16 15:19:20 +01:00
committed by Jakob Borg
parent 7a92f6c6b1
commit 6802505dda
3 changed files with 16 additions and 20 deletions

View File

@@ -30,12 +30,8 @@ func (f *BasicFilesystem) ReadSymlink(name string) (string, error) {
return os.Readlink(name)
}
func (f *BasicFilesystem) MkdirAll(name string, perm FileMode) error {
name, err := f.rooted(name)
if err != nil {
return err
}
return os.MkdirAll(name, os.FileMode(perm))
func (f *BasicFilesystem) mkdirAll(path string, perm os.FileMode) error {
return os.MkdirAll(path, perm)
}
// Unhide is a noop on unix, as unhiding files requires renaming them.