I am using gcloud nodejs api
to access Google Cloud Storage. I can save/delete/exists files individually, but I didn't find a way to delete a folder or even to list the files in a folder using gcloud nodejs api
.
I have seen people say that the folder hierachy in GCS is not a real tree structure, but just names. So I tried to use wildcard to match the file name string, which did not succeed.
I wonder if there is any way to do it. If not, what tool should I use?
deleteFiles
function in the docs. I had to look at the source code. Just one addition: without the optiondelimiter: '/'
the function deletes all files and subfolders. – Exhilarant