Alionaa Aliona
Alionaa Aliona

Reputation: 1

Google App Engine files on Cloud Storage

How can I get following variables in Google App Engine Cloud Storage using php:--

  1. number of files in specific bucket
  2. number of files with specific extension in specific bucket

Upvotes: 0

Views: 96

Answers (1)

Mars
Mars

Reputation: 1412

You can use glob on GCS, e.g. glob("gs:///*.txt"). However, it may not be the most efficient solution if there is a large number of files.

Upvotes: 2

Related Questions