Google Cloud Storage + Python : Any way to list obj in certain folder in GCS?
问题 I'm going to write a Python program to check if a file is in certain folder of my Google Cloud Storage, the basic idea is to get the list of all objects in a folder, a file name list , then check if the file abc.txt is in the file name list . Now the problem is, it looks Google only provide the one way to get obj list , which is uri.get_bucket() , see below code which is from https://developers.google.com/storage/docs/gspythonlibrary#listing-objects uri = boto.storage_uri(DOGS_BUCKET, GOOGLE