googledrive icon indicating copy to clipboard operation
googledrive copied to clipboard

drive_download() entire GD folder as a ZIP?

Open mbojan opened this issue 2 years ago • 2 comments

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.

mbojan avatar Oct 17 '21 23:10 mbojan

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.

jennybc avatar Nov 01 '21 19:11 jennybc

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).

mbojan avatar Nov 06 '21 03:11 mbojan