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

Function fileExt

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

Source from the content-addressed store, hash-verified

105}
106
107func fileExt(fn string) string {
108 fn = strings.ToLower(fn)
109 if strings.HasSuffix(fn, ".tar.gz") {
110 return ".tar.gz"
111 }
112 return path.Ext(fn)
113}
114
115func ConcurrentUpload(httpClient httpDoer, uploadURL safeurl.SafeURL, numWorkers int, assets []*AssetForUpload) error {
116 if numWorkers == 0 {

Callers 1

typeForFilenameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected