MCPcopy Index your code
hub / github.com/cli/cli / fileExt

Function fileExt

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

Source from the content-addressed store, hash-verified

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

Callers 1

typeForFilenameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected