aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/machine/machine_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/machine/machine_windows.go')
-rw-r--r--cmd/podman/machine/machine_windows.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmd/podman/machine/machine_windows.go b/cmd/podman/machine/machine_windows.go
new file mode 100644
index 000000000..ffd5d8827
--- /dev/null
+++ b/cmd/podman/machine/machine_windows.go
@@ -0,0 +1,11 @@
+package machine
+
+import (
+ "os"
+ "strings"
+)
+
+func isUnixSocket(file os.DirEntry) bool {
+ // Assume a socket on Windows, since sock mode is not supported yet https://github.com/golang/go/issues/33357
+ return !file.Type().IsDir() && strings.HasSuffix(file.Name(), ".sock")
+}