Files
buildx/vendor/github.com/moby/buildkit/util/system/path_unix.go
T
2025-04-09 10:28:03 -05:00

18 lines
388 B
Go

//go:build !windows
package system
import "path/filepath"
// IsAbsolutePath is just a wrapper that calls filepath.IsAbs.
// Has been added here just for symmetry with Windows.
func IsAbsolutePath(path string) bool {
return filepath.IsAbs(path)
}
// GetAbsolutePath does nothing on non-Windows, just returns
// the same path.
func GetAbsolutePath(path string) string {
return path
}