tidyverse / googledrive

Google Drive R API
https://googledrive.tidyverse.org/
Other
323 stars 48 forks source link

drive_download() entire GD folder as a ZIP? #378

Open mbojan opened 3 years ago

mbojan commented 3 years ago

Would it be feasible to extend drive_download() to fetch an entire GD folder as a ZIP? In the web interface I can right-click on a folder and "Download" will get me a ZIP of that folder.

I'm in for processing a (large) number of files stored in a GD folder. Instead of fetching individual files I could then fetch the ZIP and "disassemble" it locally. That would be more API-ecological.

jennybc commented 3 years ago

AFAIK this is not supported by the Google Drive API and I have looked for this in the past.

So to get this either that needs to change (or someone needs to alert me that it is already possibly) or the logic has to be implemented in the googledrive package.

Related to #123.

mbojan commented 3 years ago

Thanks @jennybc . Indeed, I don't see it in the API documentation. Meanwhile, I found https://stackoverflow.com/questions/56297366/download-folder-as-zip-google-drive-api, but I can't tell if this could be leveraged in any way by the package (irrespectively of the limitations mentioned there).