path_unix.go 561 B

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