title: Write to Google Cloud storage bucket as if it were a directory?
body: <p>I've written a python script that resamples and renames a ton of audio data and moves it to a new location on disk. I'd like to use this script to move the data I'm resampling to a google storage bucket.</p>
  <p><strong>Question:</strong> Is there a way to connect/mount your GCP VM instance to a bucket in such a way that reading and writing can be done as if the bucket is just another directory?</p>
  <p>For example, this is somewhere in my script:</p>
  <pre><code># load audio from old location
  audio, _ = librosa.load(old_path):
  
  # Do some stuff to the audio
  # ...
  
  # write audio to new location
  with sf.SoundFile(new_path, 'w', sr, channels=1, format='WAV') as f:
        f.write(audio)
  </code></pre>
  <p>I'd like to have a way to get the <code>path</code> to my bucket because my script takes an <code>old_path</code> where the original data is, resamples and moves it to a <code>new_path</code>.</p>
  <p>My script would not be as simple to modify as the snippet above makes it seem, because I'm doing a lot of multiprocessing. Plus I'd like to make the script generic so I can re-use it for local files, etc. Basically, altering the script is off the table.</p>