Files
podman/pkg/specgen/winpath_linux.go
Giuseppe Scrivano 1991990d5a pkg/specgen: use fileutils.(Le|E)xists
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-04-19 09:52:14 +02:00

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
}