Skip to content

Storage bucket.getFiles() not including sub-directories when specifying a prefix #514

Closed
@drewbryant

Description

@drewbryant

GCS supports also returning "sub-directories" (i.e., common object prefixes) when listing a bucket and specifying a prefix (e.g., "/") within the query.

The sub-directories are returned as CommonPrefixes within the response.

Could these be included as well in the bucket.getFiles() response? Or maybe add a flag to specify whether subdirectories should also be returned.

Currently, the only work-around I've come up with is listing all objects within the bucket (expensive) and then filtering the response.

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions