Q="'MAIN_FOLDER_WITH_SUBFOLDERS_ID' in parents", Service = build('drive', 'v3', http=thorize(Http())) My goal is to loop through each folder, download the 52 files, then convert those 52 files into one file that is more compressed (get rid of unnecessary/duplicate data).Ĭode def main(temporary_workspace, workspace):įlow = client.flow_from_clientsecrets('credentials.json', SCOPES) So I have ~135 folders, containing 52 files each. I have pasted the code below and here is just a quick explanation of the file structure. However, for some reason, my code is downloading duplicate files, or potentially just reading the BytesIO object incorrectly. ![]() So I am trying to download a lot of different files from google drive, then combine them into smaller fewer files.
0 Comments
Leave a Reply. |