目前,我可以使用以下命令将文件作为单独的文件下载
files.download(file_name)
我也尝试用下面的代码片段将它们上传到驱动器,但是它正在将它们作为单独的文件上传。
uploaded = drive.CreateFile({'title': file_name})
uploaded.SetContentString('Sample upload file content')
uploaded.Upload()
print('Uploaded file with ID {}'.format(uploaded.get('id')))
How can I download multiple files as a folder to my local computer? Or how can I upload these files as a folder to my google drive?