fix os.Root api on windows issue
This commit is contained in:
parent
b9a8fad6fa
commit
355e83e07f
1 changed files with 3 additions and 0 deletions
|
|
@ -1064,6 +1064,9 @@ func (r *sandboxFs) execute(path string, fn func(root *os.Root, relPath string)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// os.Root api on windows only accept forward slashes (/)
|
||||||
|
relPath = filepath.ToSlash(relPath)
|
||||||
|
|
||||||
return fn(root, relPath)
|
return fn(root, relPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue