Hardik Sachdeva
Hardik Sachdeva

Reputation: 195

How to get the object and sub directory count in google cloud storage bucket

Is their any Command or option in Google Developer Console to get the object and sub directory count in google cloud storage bucket.

Upvotes: 0

Views: 1172

Answers (1)

Zhihong Yao
Zhihong Yao

Reputation: 166

I don't think there is such option in the developer console. I think the best way to count objects is to use gsutil (https://cloud.google.com/storage/docs/gsutil?hl=en)? You can use commands like "gsutil ls gs://bucket/** | wc -l" to count the number of objects in a bucket.

Upvotes: 5

Related Questions