mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-12 07:18:49 +00:00
9 lines
347 B
Go
9 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] == ':'
|
|
}
|