Thank you for posting your questions here.
From what I can tell, you are using
Directory.GetFiles to try to get the a list of files in a given bucket. In effect, the simplest way to get an object list in a given bucket is to use the
C# client API service with the
Objects.List method. This client library is essentially a collection of C# methods/objects wrapped around the
JSON API. I do not know of any way to achieve this using
GetFiles.
If a list of objects is not what you were looking for, please describe what other information you are attempting to get from your bucket and we'll do our best to point you in the effective direction. Hope this helps!