mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 19:41:17 +00:00
8 lines
347 B
Go
8 lines
347 B
Go
package monitoring
|
|
|
|
// isWindowsGuestFilesystemMountpoint reports whether a guest-agent filesystem
|
|
// mountpoint represents a Windows drive. Accept both normalized drive roots
|
|
// like "C:" and nested paths like "C:\\Windows".
|
|
func isWindowsGuestFilesystemMountpoint(mountpoint string) bool {
|
|
return len(mountpoint) >= 2 && mountpoint[1] == ':'
|
|
}
|