aboutsummaryrefslogtreecommitdiff
path: root/pkg/specgen/winpath_linux.go
blob: f42ac76399da73e7bc418f042e277e2bb5b24b80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package specgen

import (
	"os"

	"github.com/containers/common/pkg/machine"
)

func shouldResolveWinPaths() bool {
	return machine.MachineHostType() == "wsl"
}

func shouldResolveUnixWinVariant(path string) bool {
	_, err := os.Stat(path)
	return err != nil
}

func resolveRelativeOnWindows(path string) string {
	return path
}

func winPathExists(path string) bool {
	return false
}