github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/pkg/specgen/winpath_linux.go (about)

     1  package specgen
     2  
     3  import (
     4  	"os"
     5  
     6  	"github.com/containers/common/pkg/machine"
     7  )
     8  
     9  func shouldResolveWinPaths() bool {
    10  	return machine.MachineHostType() == "wsl"
    11  }
    12  
    13  func shouldResolveUnixWinVariant(path string) bool {
    14  	_, err := os.Stat(path)
    15  	return err != nil
    16  }
    17  
    18  func resolveRelativeOnWindows(path string) string {
    19  	return path
    20  }
    21  
    22  func winPathExists(path string) bool {
    23  	return false
    24  }