Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to list the Folders #1683

Open
Mansur-L opened this issue Jul 17, 2024 · 1 comment
Open

Unable to list the Folders #1683

Mansur-L opened this issue Jul 17, 2024 · 1 comment

Comments

@Mansur-L
Copy link

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();

@gfourny-sfeir
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants