Skip to content

Commit fe575d5

Browse files
committed
Populate TransferUtilityDownloadDirectoryResponse with total objects downloaded
stack-info: PR: #4109, branch: GarrettBeatty/stacked/14
1 parent e63ed78 commit fe575d5

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"services": [
3+
{
4+
"serviceName": "S3",
5+
"type": "patch",
6+
"changeLogMessages": [
7+
"Populate TransferUtilityDownloadDirectoryResponse with total objects downloaded"
8+
]
9+
}
10+
]
11+
}

sdk/src/Services/S3/Custom/Transfer/Internal/_bcl+netstandard/DownloadDirectoryCommand.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ await asyncThrottler.WaitAsync(cancellationToken)
113113
await WhenAllOrFirstExceptionAsync(pendingTasks, cancellationToken)
114114
.ConfigureAwait(continueOnCapturedContext: false);
115115

116-
return new TransferUtilityDownloadDirectoryResponse();
116+
return new TransferUtilityDownloadDirectoryResponse
117+
{
118+
ObjectsDownloaded = this._totalNumberOfFilesToDownload
119+
};
117120
}
118121
finally
119122
{

sdk/src/Services/S3/Custom/Transfer/TransferUtilityDownloadDirectoryResponse.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@ namespace Amazon.S3.Transfer
2222
/// </summary>
2323
public class TransferUtilityDownloadDirectoryResponse
2424
{
25+
/// <summary>
26+
/// The number of objects that have been downloaded
27+
/// </summary>
28+
public long ObjectsDownloaded { get; set; }
2529
}
2630
}

0 commit comments

Comments
 (0)