Thank you for posting your questions here.

>From what I can tell, you are using Directory.GetFiles 
<https://msdn.microsoft.com/en-us/library/system.io.directory.getfiles(v=vs.110).aspx>
 
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 
<https://cloud.google.com/storage/docs/json_api/v1/json-api-dotnet-samples#setup-code>
 
service with the Objects.List method 
<https://developers.google.com/resources/api-libraries/documentation/storage/v1/csharp/latest/classGoogle_1_1Apis_1_1Storage_1_1v1_1_1ObjectsResource_1_1ListRequest.html>.
 
 This client library is essentially a collection of C# methods/objects 
wrapped around the JSON API 
<https://cloud.google.com/storage/docs/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!

On Monday, June 27, 2016 at 11:58:54 AM UTC-4, Richard Harden wrote:
>
>
> I am working in C# and need to get a list of the files in a bucket. I am 
> trying to determine the structure of the path. I tried the following and it 
> did not find the directory.
>
>
>             string Path = "/storage/v1/b/BucketName..appspot.com/o/";
>             if (Directory.Exists(Path))
>             {
>                 string[] fileEntries = Directory.GetFiles(Path);
>                 foreach (string FileName in fileEntries) 
>                     litFiles.Text = FileName.ToString();
>
>
>             }
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b56b422e-0b06-4c36-9d62-b55d66a2c436%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Richard Harden
    • [google-appen... 'Nicholas (Google Cloud Support)' via Google App Engine

Reply via email to