File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -152,16 +152,26 @@ var transferType transfer.Definition
152
152
func displayFilesToTransfer (sourcesInfo []pipeline.SourceInfo , numOfBatches int , batchNumber int ) {
153
153
if numOfBatches == 1 {
154
154
fmt .Printf ("Files to Transfer (%v) :\n " , transferDefStr )
155
+ var totalSize uint64
156
+ summary := ""
155
157
156
158
for _ , source := range sourcesInfo {
157
159
//if the source is URL, remove the QS
158
160
display := source .SourceName
159
161
if u , err := url .Parse (source .SourceName ); err == nil {
160
162
display = fmt .Sprintf ("%v%v" , u .Hostname (), u .Path )
161
163
}
162
- fmt .Printf ("Source: %v Size:%v \n " , display , source .Size )
164
+ summary = summary + fmt .Sprintf ("Source: %v Size:%v \n " , display , source .Size )
165
+ totalSize = totalSize + source .Size
163
166
}
164
167
168
+ if len (sourcesInfo ) < 50 {
169
+ fmt .Printf (summary )
170
+ return
171
+ }
172
+
173
+ fmt .Printf ("%v files. Total size:%v\n " , len (sourcesInfo ), totalSize )
174
+
165
175
return
166
176
}
167
177
You can’t perform that action at this time.
0 commit comments