Google 云端硬盘文件和文件夹操作(Google Drive File and Folder operations)#
使用此操作在 Google 云端硬盘中搜索文件和文件夹。有关 Google 云端硬盘节点的更多信息,请参阅 Google 云端硬盘。
🌐 Use this operation to search for files and folders in Google Drive. Refer to Google Drive for more information on the Google Drive node itself.
This node can be used as an AI tool
This node can be used to enhance the capabilities of an AI agent. When used in this way, many parameters can be set automatically, or with information directed by AI - find out more in the AI tool parameters documentation.
搜索文件和文件夹(Search files and folders)#
使用此操作在云端硬盘中搜索文件和文件夹。
🌐 Use this operation to search for files and folders in a drive.
请输入以下参数:
🌐 Enter these parameters:
- 连接凭证:创建或选择现有的 Google Drive 凭证。
- 资源:选择文件/文件夹。
- 操作:选择 搜索。
- 搜索方式:选择你想要的搜索方式:
- 搜索文件/文件夹名称:在 搜索查询 中填写你要搜索的文件或文件夹的名称。也会返回与查询部分匹配的文件和文件夹。
- 高级搜索:填写 查询字符串,使用 Google 查询字符串语法 搜索文件和文件夹。
- 返回全部:选择是返回所有结果还是仅返回指定数量的结果。
- 限制:当不返回全部时,要返回的最大项目数。
- 筛选:选择是否限制搜索范围:
- 驱动器:你想要搜索的驱动器。默认情况下,使用你的个人“我的云端硬盘”。选择 从列表中 以从下拉列表中选择驱动器,选择 通过 URL 以输入驱动器的 URL,或选择 通过 ID 以输入
driveId。- 您可以通过在浏览器中访问共享驱动器并复制最后的 URL 组件来找到
driveId:https://drive.google.com/drive/u/1/folders/driveId。
- 您可以通过在浏览器中访问共享驱动器并复制最后的 URL 组件来找到
- 文件夹:要搜索的文件夹。选择 从列表中 从下拉列表中选择文件夹,选择 通过 URL 输入文件夹的 URL,或选择 通过 ID 输入
folderId。- 您可以通过在浏览器中访问共享文件夹并复制最后的 URL 组件
https://drive.google.com/drive/u/1/folders/folderId来找到folderId。
- 您可以通过在浏览器中访问共享文件夹并复制最后的 URL 组件
- 搜索内容:是搜索 文件和文件夹、文件 还是 文件夹。
- 包括已删除的项目:是否也返回云端硬盘垃圾箱中的项目。
- 驱动器:你想要搜索的驱动器。默认情况下,使用你的个人“我的云端硬盘”。选择 从列表中 以从下拉列表中选择驱动器,选择 通过 URL 以输入驱动器的 URL,或选择 通过 ID 以输入
选项(Options)#
- 字段:选择要返回的字段。可以选择以下一个或多个:[全部]、explicitlyTrashed、exportLinks、hasThumbnail、iconLink、ID、Kind、mimeType、Name、Permissions、Shared、Spaces、Starred、thumbnailLink、Trashed、Version 或 webViewLink。
有关更多信息,请参考 方法:files.list | Google Drive API 文档。
🌐 Refer to the Method: files.list | Google Drive API documentation for more information.