title: How do I read files in a subdirectory/prefix from google cloud storage?
body: <p>I have moved files and folders over to google cloud storage (GCS). I am finding it difficult to understand the prefixes and delimiters in the GCS documentation.</p>
  
  <p>What I want to do is essentially replace the path/location of locally stored files with GCS location. E.g.</p>
  
  <p>It is currently coded for local path:</p>
  
  <pre><code>Variable = "C:\\Users\\admin\\Documents\\Folder1\\doc3.csv"
  </code></pre>
  
  <p>I need it written to search for the file in GCS like below:</p>
  
  <pre><code>Variable = "https://storage.cloud.google.com/MYBUCKETNAME/Folder1/doc3.csv?supportedpurview=project"
  </code></pre>
  
  <p>This obviously doesn't work but I have the below code which connects to the bucket but I am struggling to direct it to the specific file.</p>
  
  <pre><code>from google.cloud import storage
  import os
  client = storage.Client()
  bucket = client.bucket('mybucketname')
  blobs = bucket.list_blobs(prefix='Folder1')
  for blob in blobs:
      print(blob.name)
  </code></pre>
  
  <p>So the output of this gives the following files in that specific folder:</p>
  
  <pre><code>doc1.csv
  doc2.csv
  doc3.csv
  </code></pre>
  
  <p>For my variable, what do I write as my filepath to doc3.csv. This is what I am struggling with. </p>