path_unix.go 560 B

1234567891011121314151617
  1. //go:build !windows
  2. // +build !windows
  3. package system // import "github.com/docker/docker/pkg/system"
  4. // GetLongPathName converts Windows short pathnames to full pathnames.
  5. // For example C:\Users\ADMIN~1 --> C:\Users\Administrator.
  6. // It is a no-op on non-Windows platforms
  7. func GetLongPathName(path string) (string, error) {
  8. return path, nil
  9. }
  10. // checkSystemDriveAndRemoveDriveLetter is the non-Windows implementation
  11. // of CheckSystemDriveAndRemoveDriveLetter
  12. func checkSystemDriveAndRemoveDriveLetter(path string) (string, error) {
  13. return path, nil
  14. }