podman-build/pkg/machine/vmconfigs/volumes_unix.go
2025-10-11 12:30:35 +09:00

17 lines
308 B
Go

//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
package vmconfigs
import "strings"
func pathsFromVolume(volume string) []string {
return strings.SplitN(volume, ":", 3)
}
func extractTargetPath(paths []string) string {
if len(paths) > 1 {
return paths[1]
}
return paths[0]
}