Closed
Description
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.