[Python] Walking a directory tree inside a Google Cloud Platform bucket in Python

Discussão em 'Python' iniciado por Stack, Setembro 2, 2025.

  1. Stack

    Stack Membro Participativo

    For directories on a local machine, the os.walk() method is commonly used for walking a directory tree in Python.

    Google has a Python module (google.cloud.storage) for uploading to and downloading from a GCP bucket in a locally-run Python script.

    I need a way to walk directory trees in a GCP bucket. I browsed through the classes in the google.cloud Python module, but could not find anything. Is there a way to perform something similar to os.walk() on directories inside a GCP bucket?

    Continue reading...

Compartilhe esta Página