S3DirectoryInfo dir= new S3DirectoryInfo(client, "bucketname", "sampledir/sample");
test.Create();
var files = dir.GetFiles();
so using dir.GetFiles(), i can't get the files inside the directory.
how can i solve this????
Instead of above code use this below code it will work. The change is trailing slash.
S3DirectoryInfo dir= new S3DirectoryInfo(client, "bucketname","sampledir\sample");
    test.Create();
    var files = dir.GetFiles();
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With