path_unix.go 292 B

12345678910
  1. //go:build !windows
  2. // +build !windows
  3. package system
  4. // CheckSystemDriveAndRemoveDriveLetter verifies that a path, if it includes a drive letter,
  5. // is the system drive. This is a no-op on Linux.
  6. func CheckSystemDriveAndRemoveDriveLetter(path string) (string, error) {
  7. return path, nil
  8. }