Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getUpperPath (0.1 sec)

  1. pkg/volume/util/subpath/subpath_windows.go

    	if strings.HasPrefix(path, "Volume") || strings.HasPrefix(path, "\\\\?\\") || strings.HasPrefix(path, "\\\\.\\") || strings.HasPrefix(path, "UNC") {
    		return true
    	}
    	return false
    }
    
    // getUpperPath removes the last level of directory.
    func getUpperPath(path string) string {
    	sep := fmt.Sprintf("%c", filepath.Separator)
    	upperpath := strings.TrimSuffix(path, sep)
    	return filepath.Dir(upperpath)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top