title: How do I list all files within a Bucket Subdirectory in PHP?
body: <p>After reviewing the PHP Docs for the GCP Storage API and the Bookshelf tutorial (<a href="https://cloud.google.com/php/getting-started/using-cloud-storage" rel="nofollow noreferrer">https://cloud.google.com/php/getting-started/using-cloud-storage</a>) <strong>I'm lost on how to list the files located in a Bucket subdirectory.</strong></p>
  
  <p>I've viewed <a href="https://stackoverflow.com/questions/41126478/listing-files-in-google-cloud-storage-nearline-missing-files">Listing files in Google Cloud Storage (nearline) - missing files</a>, however, this code is adapted to Python. <strong>If it really is as simple as using an ls command, how would I run this command from PHP?</strong> I've dug through the repo's on Github from Google and I'm not sure which to use in this case.</p>
  
  <p>I have both of these libraries included via composer. Just to clarify I'm running these remotely from a DigitalOcean Droplet, not from App Engine.</p>
  
  <pre><code>"google/appengine-php-sdk": "^1.9",
  "google/cloud": "^0.39.2",
  </code></pre>