简体   繁体   中英

How to add subdirectory in google cloud storage using flask in python 2

Im using cloudstorage module for uploading files to google cloud storage since am using python 2.x. And I need to create a subdirectory in my bucket and list all the contents in webpage.

You don't create directories in Google Cloud Storage (GCS).

GCS is a flat namespace.

GCS buckets contain objects and object names may include "/".

See here for more details.

gsutil and the Console browser make it appear as if buckets contain directories.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM