title: download_to_filename makes an empty file (google cloud storage)
body: <p>Answer:
  I needed to grant ownership access to the storage policy and not just grant a general API ownership to the IAM connected to my instance.</p>
  
  <p>I have simply followed the tutorial on the website here: <a href="https://cloud.google.com/storage/docs/downloading-objects#storage-download-object-python" rel="nofollow noreferrer">https://cloud.google.com/storage/docs/downloading-objects#storage-download-object-python</a></p>
  
  <p>Which says</p>
  
  <pre><code>def download_blob(bucket_name, source_blob_name, destination_file_name):
      """Downloads a blob from the bucket."""
      storage_client = storage.Client()
      bucket = storage_client.get_bucket(bucket_name)
      blob = bucket.blob(source_blob_name)
  
      blob.download_to_filename(destination_file_name)
  
      print('Blob {} downloaded to {}.'.format(
          source_blob_name,
          destination_file_name))
  
  download_blob([BUCKETNAME],[FILENAME],"/home/me/documents/file.png")
  </code></pre>
  
  <p>I don't receive an error but the last line to be executed is blob.download_to_filename(destination_file_name)</p>
  
  <p>Which creates an empty file.</p>
  
  <p>Additional info:
  My bucket is in the format "mybucketname"
  my file is in the format "sdg-1234-fggr-34234.png"</p>
  
  <p>I hope anyone has knowledge about my issue.
  Is it encoding? Or doesn't the download_to_filename execute? Or something else?</p>