(fn string)
| 101 | } |
| 102 | |
| 103 | func 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 | |
| 111 | func ConcurrentUpload(httpClient *http.Client, hostname string, uploadURL safeurl.SafeURL, numWorkers int, assets []*AssetForUpload) error { |
| 112 | if numWorkers == 0 { |