mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
Merge pull request #3089 from cs8425/fix-win-os-root-api
fix os.Root api on windows issue
This commit is contained in:
@@ -1064,6 +1064,9 @@ func (r *sandboxFs) execute(path string, fn func(root *os.Root, relPath string)
|
||||
return err
|
||||
}
|
||||
|
||||
// os.Root api on windows only accept forward slashes (/)
|
||||
relPath = filepath.ToSlash(relPath)
|
||||
|
||||
return fn(root, relPath)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user