Search code examples
c#asp.netasp.net-coreamazon-s3aws-sdk

Get recent file in S3 bucket using C#


I have a use case at work that requires a method to find the most recent digital signature certificate. Is there a way to get the last modified file / object from a S3 bucket using the AWS.SDK in .NET CORE 5.0 with C#?


Solution

  • No.

    You will need to retrieve all objects and then use code in your C# program to find the returned object with the latest LastModifiedDate.