I want to get all folders inside a temp folder in the bucket then move it to the bucket itself and delete the temp folder, for example, if I have gs://bucketname/mainfolder/temp and this temp folder contains 3 folders like gs://bucketname/mainfolder/temp/folder1 and gs://bucketname/mainfolder/temp/folder2 and I want to move folder and folder2 (with their contents) into the mainfolder so that they are like this: gs://bucketname/mainfolder/folder1 and gs://bucketname/mainfolder/folder2 and delete the temp folder with its contents after copying what I need from it.
I was thinking about listing the folder inside the temp folder using GoogleCloudStorageHook and using list
for exmaple:
hook = GoogleCloudStorageHook()
hook.list(bucket="bucketname", prefix="mainfolder/temp/", delimiter='/')
but am not so sure how to proceed after this. any ideas? :)