[GH-ISSUE #1683] Unable to list the Folders #213

Open
opened 2026-03-03 12:09:12 +03:00 by kerem · 2 comments
Owner

Originally created by @Mansur-L on GitHub (Jul 17, 2024).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1683

Tried creating a folder using storage in fake gcs. And created a files inside the folder. While trying to list the folders created using storage.create, the folder is not getting listed.

STORAGE.create(BucketInfo.newBuilder("Test bucket").build());
BlobId blobId3 = BlobId.of("Test bucket", "testDelete/");
BlobId blobId4 = BlobId.of("Test bucket", "testfolder/test.txt");
BlobInfo blobInfo3 = BlobInfo.newBuilder(blobId3).build();
BlobInfo blobInfo4 = BlobInfo.newBuilder(blobId4).build();

Originally created by @Mansur-L on GitHub (Jul 17, 2024). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1683 Tried creating a folder using storage in fake gcs. And created a files inside the folder. While trying to list the folders created using storage.create, the folder is not getting listed. STORAGE.create(BucketInfo.newBuilder("Test bucket").build()); BlobId blobId3 = BlobId.of("Test bucket", "testDelete/"); BlobId blobId4 = BlobId.of("Test bucket", "testfolder/test.txt"); BlobInfo blobInfo3 = BlobInfo.newBuilder(blobId3).build(); BlobInfo blobInfo4 = BlobInfo.newBuilder(blobId4).build();
Author
Owner

@gfourny-sfeir commented on GitHub (Jul 19, 2024):

I have an exception on storage.get(bucket) Java API:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
GET http://storage:8000/storage/v1/b/output/o?projection=full
{
"code" : 404,
"errors" : [ {
"domain" : "global",
"message" : "Not Found",
"reason" : "Not Found"
} ],
"message" : "Not Found"
}

If I request storage.get(bucket, blobName) it's working

<!-- gh-comment-id:2239321930 --> @gfourny-sfeir commented on GitHub (Jul 19, 2024): I have an exception on storage.get(bucket) Java API: >com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found GET http://storage:8000/storage/v1/b/output/o?projection=full { "code" : 404, "errors" : [ { "domain" : "global", "message" : "Not Found", "reason" : "Not Found" } ], "message" : "Not Found" } If I request storage.get(bucket, blobName) it's working
Author
Owner

@danielibars commented on GitHub (Aug 21, 2025):

Is this problem addressed already?

I'm struggling with a Java application to list all folders within my fake bucket, getting the same 404 response

It'd lovely to have this feature!

<!-- gh-comment-id:3212116228 --> @danielibars commented on GitHub (Aug 21, 2025): Is this problem addressed already? I'm struggling with a Java application to list all folders within my fake bucket, getting the same 404 response It'd lovely to have this feature!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#213
No description provided.