recipe-bulk-download-folder
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBulk Download Drive Folder
批量下载Drive文件夹
PREREQUISITE: Load the following skills to execute this recipe:gws-drive
List and download all files from a Google Drive folder.
前提条件: 加载以下skill以执行此方案:gws-drive
列出并下载Google Drive文件夹中的所有文件。
Steps
步骤
- List files in folder:
gws drive files list --params '{"q": "'\''FOLDER_ID'\'' in parents"}' --format json - Download each file:
gws drive files get --params '{"fileId": "FILE_ID", "alt": "media"}' -o filename.ext - Export Google Docs as PDF:
gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "application/pdf"}' -o document.pdf
- 列出文件夹中的文件:
gws drive files list --params '{"q": "'\''FOLDER_ID'\'' in parents"}' --format json - 下载每个文件:
gws drive files get --params '{"fileId": "FILE_ID", "alt": "media"}' -o filename.ext - 将Google Docs导出为PDF:
gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "application/pdf"}' -o document.pdf