Question:
1 2 3 4 |
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????
Answer:
Instead of above code use this below code it will work. The change is trailing slash.
1 2 3 4 |
S3DirectoryInfo dir= new S3DirectoryInfo(client, "bucketname","sampledir\sample"); test.Create(); var files = dir.GetFiles(); |