- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for IsLikelyMountPoint (0.16 sec)
-
internal/mountinfo/mountinfo_linux.go
// Number of fields per line in /proc/mounts as per the fstab man page. 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 {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 4.7K bytes - Viewed (0)