github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/internal/fileutils/path_helpers_lin_mac.go (about)

     1  // +build !windows
     2  
     3  package fileutils
     4  
     5  // GetShortPathName returns the Windows short path
     6  // This function does not alter the path in any way on Linux or MacOS
     7  func GetShortPathName(path string) (string, error) {
     8  	return path, nil
     9  }
    10  
    11  // GetLongPathName returns the Windows long path (ie. ~1 notation is expanded)
    12  // This function does not alter the path in any way on Linux or MacOS
    13  func GetLongPathName(path string) (string, error) {
    14  	return path, nil
    15  }