recipe-bulk-download-folder

Lists and downloads all files from a Google Drive folder using the gws CLI.

Updated Nov 9, 2023
One-click install
npx skills add https://github.com/oresttokovenko/dot-files --skill recipe-bulk-download-folder-oresttokovenko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recipe-bulk-download-folder
Source: https://github.com/oresttokovenko/dot-files/tree/main/chezmoi/dot_agents/skills/recipe-bulk-download-folder
Command: npx skills add https://github.com/oresttokovenko/dot-files --skill recipe-bulk-download-folder-oresttokovenko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually downloading every file from a shared Google Drive folder is repetitive and error-prone, especially when the folder mixes binary files with Google Docs that require export conversion. ## Core Features & Use Cases - Folder Listing: Enumerates all files inside a Drive folder by querying with the folder ID via the Drive API. - Bulk File Download: Downloads each file individually using its file ID with the media alt parameter. - Google Docs Export: Converts Google Docs to PDF during download using the files export endpoint. - Use Case: A teammate shares a Drive folder containing 30 project documents; run this recipe to pull every file locally and export the Google Docs as PDFs in one pass. ## Quick Start Download every file from the Google Drive folder with ID FOLDER_ID, exporting any Google Docs as PDFs.

Frequently Asked Questions about recipe-bulk-download-folder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I download all files from a Google Drive folder at once?

List the folder contents with gws drive files list using a query filtering by the folder ID in parents, then download each file with gws drive files get passing the file ID and alt media parameter.

How to export Google Docs as PDF from the command line?

Use gws drive files export with the file ID and mimeType set to application/pdf, writing the output to a local .pdf file. This converts the Google Doc server-side without opening it in a browser.

What tools are required to bulk download Google Drive files?

This recipe requires the gws command-line binary and the gws-drive skill loaded as a prerequisite. Both must be available before running the list, download, and export commands.

Can I download Google Docs directly like regular Drive files?

No, Google Docs are not stored as binary files and cannot be fetched with the media download endpoint. They must be converted through the files export endpoint with a target MIME type such as application/pdf.

Why does my Drive folder file list return no results?

An empty result usually means the folder ID is incorrect or the query syntax is malformed. Verify the folder ID and ensure the query uses the exact pattern 'FOLDER_ID' in parents with proper quoting.