MCPcopy Create free account
hub / github.com/cli/cli / fileExt

Function fileExt

pkg/cmd/release/shared/upload.go:103–109  ·  view source on GitHub ↗
(fn string)

Source from the content-addressed store, hash-verified

101}
102
103func fileExt(fn string) string {
104 fn = strings.ToLower(fn)
105 if strings.HasSuffix(fn, ".tar.gz") {
106 return ".tar.gz"
107 }
108 return path.Ext(fn)
109}
110
111func ConcurrentUpload(httpClient *http.Client, hostname string, uploadURL safeurl.SafeURL, numWorkers int, assets []*AssetForUpload) error {
112 if numWorkers == 0 {

Callers 1

typeForFilenameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected