Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ private async Task<bool> KeyExists(IAmazonS3 s3Client, string bucketName, string
return false;
}

// If the object exists but the client is not authorized to access it, then a "Forbidden" will be thrown.
if (string.Equals(e.ErrorCode, "Forbidden"))
{
return false;
}

throw;
}
}
Expand Down