跳至内容

Google Drive 文件与文件夹操作#

使用此操作可在Google Drive中搜索文件和文件夹。有关Google Drive节点本身的更多信息,请参阅Google Drive

该节点可用作AI工具

该节点可用于增强AI智能体的能力。以这种方式使用时,许多参数可以自动设置,或由AI引导信息进行配置 - 更多详情请参阅AI工具参数文档

搜索文件和文件夹#

使用此操作在驱动器中搜索文件和文件夹。

输入以下参数:

  • 连接凭证: 创建或选择现有的Google Drive凭证
  • 资源: 选择文件/文件夹.
  • 操作: 选择搜索.
  • Search Method: Choose how you want to search:
    • 搜索文件/文件夹名称: 在搜索查询中填写您要查找的文件或文件夹名称。返回与查询部分匹配的文件和文件夹。
    • 高级搜索: 填写查询字符串以使用Google查询字符串语法搜索文件和文件夹。
  • 返回全部: 选择是返回所有结果还是仅返回给定限制内的结果。
  • Limit: 当返回全部选项关闭时,返回项目的最大数量限制。
  • Filter: Choose whether to limit the scope of your search:
    • Drive: The drive you want to search in. By default, uses your personal "My Drive". Select From list to choose the drive from the dropdown list, By URL to enter the URL of the drive, or By ID to enter the driveId.
      • 您可以通过在浏览器中访问共享驱动器并复制URL的最后一部分来找到driveIdhttps://drive.google.com/drive/u/1/folders/driveId
    • Folder: The folder to search in. Select From list to choose the folder from the dropdown list, By URL to enter the URL of the folder, or By ID to enter the folderId.
      • 您可以通过在浏览器中访问共享文件夹并复制URL的最后一部分来找到folderIdhttps://drive.google.com/drive/u/1/folders/folderId
    • 搜索内容: 选择搜索文件和文件夹仅文件仅文件夹
    • 包含已删除项: 是否同时返回回收站中的文件。

选项#

  • 字段: 选择要返回的字段。可以是以下一个或多个选项: [全部], explicitlyTrashed, exportLinks, hasThumbnail, iconLink, ID, Kind, mimeType, 名称, Permissions, Shared, Spaces, Starred, thumbnailLink, Trashed, Version, 或 webViewLink.

更多信息请参考Method: files.list | Google Drive API文档。

优云智算