mirror of
https://github.com/containers/podman.git
synced 2025-05-22 09:36:57 +08:00
23 lines
412 B
Go
23 lines
412 B
Go
package specgen
|
|
|
|
import (
|
|
"github.com/containers/common/pkg/machine"
|
|
"github.com/containers/storage/pkg/fileutils"
|
|
)
|
|
|
|
func shouldResolveWinPaths() bool {
|
|
return machine.HostType() == "wsl"
|
|
}
|
|
|
|
func shouldResolveUnixWinVariant(path string) bool {
|
|
return fileutils.Exists(path) != nil
|
|
}
|
|
|
|
func resolveRelativeOnWindows(path string) string {
|
|
return path
|
|
}
|
|
|
|
func winPathExists(path string) bool {
|
|
return false
|
|
}
|