title: move files between directories in single GCP bucket
body: <p>I am trying to set up cloud functions to move files between folders inside one bucket in GCP.</p>
  
  <p>Whenever the user loads files into the provided bucket folder, my cloud functions move the file to another folder where big data scripts are looking after.</p>
  
  <p>It shows successful while setting up, however, files are not moving from the source folders.</p>
  
  <p><img src="https://i.stack.imgur.com/YtSpO.png" alt="enter image description here"></p>
  
  <p>Appreciate your help</p>
  
  <pre><code>from google.cloud import storage
  
  def move_file(bucket_name, bucket_Folder, blob_name):
      """Moves a blob from one folder to another with the same name."""
      bucket_name = 'bucketname'
      blob_name = 'filename'
  
      storage_client = storage.Client()
  
      bucket = storage_client.get_bucket(bucket_name)
      source_blob = bucket.blob("Folder1/" + blob_name)
      new_blob = bucket.copy_blob(source_blob, bucket, "Folder2/" + blob_name)
      blob.delete()
  
      print('Blob {} in bucket {} copied to blob {} .'.format(source_blob.name, bucket.name, new_blob.name))
  
  </code></pre>