Recipe Bulk Download Folder

作者 googleworkspacea3768d0e82ad無授權條款31K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫昨天更新

List and download all files from a Google Drive folder.

AI 產生的概覽

使用 gws CLI 列出並下載 Google Drive 資料夾中的所有檔案,並將 Google 文件匯出為 PDF。

功能
提供一份簡短的操作步驟,用來取得指定 Google Drive 資料夾中的所有檔案。它透過 gws drive files list 查詢列出資料夾內容,依檔案 ID 逐一 下載,並將 Google 文件匯出為 PDF。最終產出是儲存到本機的檔案。
適用情境
適用於需要把整個 Google Drive 資料夾下載到本機,並希望將 Google 文件轉成 PDF 的情境。
執行需求
需要 gws CLI 執行檔,並須載入 gws-drive 技能;需要 Google Drive 存取權與網路連線。不含指令碼。

Bulk Download Drive Folder

PREREQUISITE: Load the following skills to execute this recipe: gws-drive

List and download all files from a Google Drive folder.

Steps

  1. List files in folder: gws drive files list --params '{"q": "'\''FOLDER_ID'\'' in parents"}' --format json
  2. Download each file: gws drive files get --params '{"fileId": "FILE_ID", "alt": "media"}' -o filename.ext
  3. Export Google Docs as PDF: gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "application/pdf"}' -o document.pdf

來源與署名

來源:googleworkspace/cli位於skills/recipe-bulk-download-folder提交a3768d0

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架