- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for mountpoint (0.03 sec)
-
internal/mountinfo/mountinfo_linux.go
expectedNumFieldsPerLine = 6 // Location of the mount file to use procMountsPath = "/proc/mounts" ) // IsLikelyMountPoint determines if a directory is a mountpoint. func IsLikelyMountPoint(path string) bool { s1, err := os.Lstat(path) if err != nil { return false } // A symlink can never be a mount point if s1.Mode()&os.ModeSymlink != 0 { return false }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 4.7K bytes - Viewed (0) -
internal/mountinfo/mountinfo_windows.go
func CheckCrossDevice(paths []string) error { return nil } // mountPointCache contains results of IsLikelyMountPoint var mountPointCache sync.Map // IsLikelyMountPoint determines if a directory is a mountpoint. func IsLikelyMountPoint(path string) bool { path = filepath.Dir(path) if v, ok := mountPointCache.Load(path); ok { if b, ok := v.(bool); ok { return b } } wpath, _ := windows.UTF16PtrFromString(path)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 2.1K bytes - Viewed (0)