mirror of
				https://github.com/containers/podman.git
				synced 2025-11-04 08:56:05 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			544 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			544 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package specgen
 | 
						|
 | 
						|
import (
 | 
						|
	"path/filepath"
 | 
						|
 | 
						|
	"github.com/containers/storage/pkg/fileutils"
 | 
						|
	"github.com/sirupsen/logrus"
 | 
						|
)
 | 
						|
 | 
						|
func shouldResolveUnixWinVariant(path string) bool {
 | 
						|
	return true
 | 
						|
}
 | 
						|
 | 
						|
func shouldResolveWinPaths() bool {
 | 
						|
	return true
 | 
						|
}
 | 
						|
 | 
						|
func resolveRelativeOnWindows(path string) string {
 | 
						|
	ret, err := filepath.Abs(path)
 | 
						|
	if err != nil {
 | 
						|
		logrus.Debugf("problem resolving possible relative path %q: %s", path, err.Error())
 | 
						|
		return path
 | 
						|
	}
 | 
						|
 | 
						|
	return ret
 | 
						|
}
 | 
						|
 | 
						|
func winPathExists(path string) bool {
 | 
						|
	return fileutils.Exists(path) == nil
 | 
						|
}
 |