Skip to content

Google 云端硬盘文件和文件夹操作#

¥Google Drive File and Folder operations

使用此操作在 Google 云端硬盘中搜索文件和文件夹。有关 Google Drive 节点本身的更多信息,请参阅 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:

¥Credential to connect with: Create or select an existing Google Drive credentials.

  • 资源:选择“文件/文件夹”。

¥Resource: Select File/Folder.

  • 操作:选择“搜索”。

¥Operation: Select Search.

  • 搜索方法:选择搜索方式:

¥Search Method: Choose how you want to search:

  • 搜索文件/文件夹名称:在“搜索查询”中填写你要搜索的文件或文件夹的名称。同时返回与查询部分匹配的文件和文件夹。

    ¥Search File/Folder Name: Fill out the Search Query with the name of the file or folder you want to search for. Returns files and folders that are partial matches for the query as well.

  • 高级搜索:填写“查询字符串”以使用 Google 查询字符串语法 搜索文件和文件夹。

    ¥Advanced Search: Fill out the Query String to search for files and folders using Google query string syntax.

  • 返回全部:选择是否返回所有结果,还是仅返回指定限制内​​的结果。

¥Return All: Choose whether to return all results or only up to a given limit.

  • 限制:禁用“全部返回”时要返回的最大项目数。

¥Limit: The maximum number of items to return when Return All is disabled.

  • 筛选:选择是否限制搜索范围:

¥Filter: Choose whether to limit the scope of your search:

  • 云端硬盘:要搜索的驱动器。默认情况下,此选项使用你的个人 "我的云盘"。选择“从列表”从下拉列表中选择驱动器,选择“按 URL”输入驱动器的 URL,或选择“按 ID”输入 driveId

    ¥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

    ¥You can find the driveId by visiting the shared drive in your browser and copying the last URL component: https://drive.google.com/drive/u/1/folders/driveId.

  • 文件夹:要搜索的文件夹。选择“从列表”从下拉列表中选择文件夹,选择“按 URL”输入文件夹的 URL,或选择“按 ID”输入 folderId

    ¥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

    ¥You can find the folderId by visiting the shared folder in your browser and copying the last URL component: https://drive.google.com/drive/u/1/folders/folderId.

  • 搜索内容:是否搜索文件和文件夹、文件或文件夹。

    ¥What to Search: Whether to search for Files and Folders, Files, or Folders.

  • 包含已删除的邮件:是否同时返回云端硬盘回收站中的项目。

    ¥Include Trashed Items: Whether to also return items in the Drive's trash.

选项#

¥Options

  • 字段:选择要返回的字段。可以是以下一项或多项:[全部]、已删除、导出链接、有缩略图、图标链接、ID、种类、MIME 类型、名称、权限、共享、空间、已加星标、缩略图链接、已删除、版本或 webViewLink。

¥Fields: Select the fields to return. Can be one or more of the following: [All], explicitlyTrashed, exportLinks, hasThumbnail, iconLink, ID, Kind, mimeType, Name, Permissions, Shared, Spaces, Starred, thumbnailLink, Trashed, Version, or webViewLink.

请参阅 方法:files.list | Google 云端硬盘 API 文档了解更多信息。

¥Refer to the Method: files.list | Google Drive API documentation for more information.