blob: ffd5d88276d57e0bc13250afefe192188f33b120 (
plain)
1
2
3
4
5
6
7
8
9
10
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")
}
|