1

How can I download a folder, using the client api?

I know I could:

  1. Recursively traverse and download children.
  2. Download the entire drive file-tree, match children of the folder I wish to download, before then downloading the files.

In the web-app, you can download folders as a ZIP, is this feature only allowed within the browser, or is there a way to access this within a desktop app?

What is the best option for downloading a folder?

Tobiq
  • 2,489
  • 19
  • 38
  • 1
    There is no API equivalent to the web-app, 'download folder as zip' feature – pinoyyid Apr 22 '17 at 19:21
  • Then, what is the best thing to do--that was my Q? – Tobiq Apr 22 '17 at 21:51
  • You'll need to traverse/descend your folder using files.list and download the files individually. Remember that Google files can't be downloaded, only exported into a specified format. So all of this logic you will need to write yourself. – pinoyyid Apr 22 '17 at 21:56
  • 1
    There are some hints here http://stackoverflow.com/questions/41741520/how-do-i-search-sub-folders-and-sub-sub-folders-in-google-drive – pinoyyid Apr 22 '17 at 21:57
  • I'll opt for my original recursive idea. – Tobiq Apr 22 '17 at 22:05
  • but how you do the recursive job? – ghiboz Aug 18 '17 at 11:33

0 Answers0