Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Worker/src/Common/Adapter/S3Adapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,15 @@ await r.WriteResponseStreamToFileAsync(materializedFileName,
false,
cancellationToken)
.ConfigureAwait(false);

File.Move(materializedFileName,
targetFileName);
try
{
File.Move(materializedFileName,
targetFileName);
}
catch (IOException ioException)
{
// File already exists
}
Comment on lines +124 to +127
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there something finer than that ? It looks a bit wide to me

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


return targetFileName;
}
Expand Down