Google 云端硬盘文件夹操作(Google Drive Folder operations)#
使用此操作可以在 Google 云端硬盘中创建、删除和共享文件夹。有关 Google 云端硬盘节点的更多信息,请参阅 Google 云端硬盘。
🌐 Use this operation to create, delete, and share 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.
创建文件夹(Create a folder)#
使用此操作在云端硬盘中创建新文件夹。
🌐 Use this operation to create a new folder in a drive.
请输入以下参数:
🌐 Enter these parameters:
- 连接凭证:创建或选择现有的 Google Drive 凭证。
- 资源:选择文件夹。
- 操作:选择 创建。
- 文件夹名称:用于新建文件夹的名称。
- 父级驱动器:选择 从列表 从下拉列表中选择驱动器,选择 通过 URL 输入驱动器的 URL,或选择 通过 ID 输入
driveId。 - 父文件夹:选择 从列表中 从下拉列表中选择文件夹,选择 通过 URL 输入文件夹的 URL,或选择 通过 ID 输入
folderId。
您可以通过在浏览器中访问共享驱动器或文件夹并复制最后的 URL 组件来找到 driveId 和 folderID:https://drive.google.com/drive/u/1/folders/driveId。
🌐 You can find the driveId and folderID by visiting the shared drive or folder in your browser and copying the last URL component: https://drive.google.com/drive/u/1/folders/driveId.
选项(Options)#
- 简化输出:选择是否返回简化版本的响应,而不是包含所有字段。
- 文件夹颜色:文件夹的颜色,以 RGB 十六进制字符串表示。
有关更多信息,请参考 方法:files.insert | Google Drive API 文档。
🌐 Refer to the Method: files.insert | Google Drive API documentation for more information.
删除文件夹(Delete a folder)#
使用此操作可从云端硬盘中删除文件夹。
🌐 Use this operation to delete a folder from a drive.
请输入以下参数:
🌐 Enter these parameters:
- 连接凭证:创建或选择现有的 Google Drive 凭证。
- 资源:选择文件夹。
- 操作:选择删除。
- 文件夹:选择你想要删除的文件夹。
- 选择 从列表中 从下拉列表中选择文件夹,通过 URL 输入文件夹的 URL,或 通过 ID 输入
folderId。 - 你可以在 Google 云端硬盘文件夹的 URL 中找到
folderId:https://drive.google.com/drive/u/0/folders/folderID。
- 选择 从列表中 从下拉列表中选择文件夹,通过 URL 输入文件夹的 URL,或 通过 ID 输入
选项(Options)#
- 永久删除:选择是否立即删除文件夹,而不是将其移动到回收站。
有关更多信息,请参考 方法:files.delete | Google Drive API 文档。
🌐 Refer to the Method: files.delete | Google Drive API documentation for more information.
共享文件夹(Share a folder)#
使用此操作向文件夹添加共享权限。
🌐 Use this operation to add sharing permissions to a folder.
请输入以下参数:
🌐 Enter these parameters:
- 连接凭证:创建或选择现有的 Google Drive 凭证。
- 资源:选择文件夹。
- 操作:选择 分享。
- 文件夹:选择你想要移动的文件。
- 选择 从列表中 从下拉列表中选择文件夹,通过 URL 输入文件夹的 URL,或 通过 ID 输入
folderId。 - 你可以在 Google 云端硬盘文件夹的 URL 中找到
folderId:https://drive.google.com/drive/u/0/folders/folderID。
- 选择 从列表中 从下拉列表中选择文件夹,通过 URL 输入文件夹的 URL,或 通过 ID 输入
- 权限:要添加到文件夹的权限:
- 角色:选择用户可以对文件夹执行的操作。可以是 评论者、文件整理者、组织者、所有者、阅读者、编辑者 中的一个。
- 类型:选择新权限的范围:
- 用户:授予特定用户权限,通过输入他们的电子邮件地址来定义。
- 组:授予特定组权限,通过输入其电子邮件地址来定义该组。
- 域:授予对完整域的权限,该域由域定义。
- 任何人:授予任何人权限。可以选择允许文件发现以通过搜索使文件可被发现。
选项(Options)#
- 电子邮件信息:在通知邮件中包含的纯文本自定义消息。
- 移动到新所有者的根目录:当尝试在共享非共享驱动器中的项目时转移所有权时可用。启用后,将文件夹移动到新所有者的“我的云端硬盘”根目录。
- 发送通知邮件:在共享给用户或组时是否发送通知邮件。
- 转让所有权:是否将所有权转让给指定用户,并将当前所有者权限降为编辑权限。
- 使用域管理员权限:是否以域管理员身份执行操作。
有关更多信息,请参考 REST 资源:文件 | Google Drive API 文档。
🌐 Refer to the REST Resources: files | Google Drive API documentation for more information.