Google 云端硬盘文件夹操作#
¥Google Drive Folder operations
使用此操作在 Google 云端硬盘中创建、删除和共享文件夹。有关 Google Drive 节点本身的更多信息,请参阅 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 云端硬盘凭据。
¥Credential to connect with: Create or select an existing Google Drive credentials.
- 资源:选择“文件夹”。
¥Resource: Select Folder.
- 操作:选择“创建”。
¥Operation: Select Create.
- 文件夹名称:新文件夹的名称。
¥Folder Name: The name to use for the new folder.
- 父驱动器:选择“从列表”从下拉列表中选择驱动器,选择“按 URL”输入驱动器的 URL,或选择“按 ID”输入
driveId。
¥Parent 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”输入文件夹的 URL,或选择“按 ID”输入
folderId。
¥Parent Folder: 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 的最后一个部分来找到 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
- 简化输出:选择是否返回简化版响应,而不是包含所有字段。
¥Simplify Output: Choose whether to return a simplified version of the response instead of including all fields.
- 文件夹颜色:文件夹的颜色(RGB 十六进制字符串)。
¥Folder Color: The color of the folder as an RGB hex string.
请参阅 方法:files.insert | Google 云端硬盘 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 云端硬盘凭据。
¥Credential to connect with: Create or select an existing Google Drive credentials.
- 资源:选择“文件夹”。
¥Resource: Select Folder.
- 操作:选择“删除”。
¥Operation: Select Delete.
- 文件夹:选择要删除的文件夹。
¥Folder: Choose a folder you want to delete.
-
选择“从列表”从下拉列表中选择文件夹,选择“按 URL”输入文件夹的 URL,或选择“按 ID”输入
folderId。¥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. -
你可以在 Google 云端硬盘文件夹 URL 中找到
folderId:https://drive.google.com/drive/u/0/folders/folderID。¥You can find the
folderIdin a Google Drive folder URL:https://drive.google.com/drive/u/0/folders/folderID.
选项#
¥Options
- 永久删除:选择是否立即删除文件夹而不是将其移至回收站。
¥Delete Permanently: Choose whether to delete the folder now instead of moving it to the trash.
请参阅 方法:files.delete | Google 云端硬盘 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 云端硬盘凭据。
¥Credential to connect with: Create or select an existing Google Drive credentials.
- 资源:选择“文件夹”。
¥Resource: Select Folder.
- 操作:选择“共享”。
¥Operation: Select Share.
- 文件夹:选择要移动的文件。
¥Folder: Choose a file you want to move.
-
选择“从列表”从下拉列表中选择文件夹,选择“按 URL”输入文件夹的 URL,或选择“按 ID”输入
folderId。¥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. -
你可以在 Google 云端硬盘文件夹 URL 中找到
folderId:https://drive.google.com/drive/u/0/folders/folderID。¥You can find the
folderIdin a Google Drive folder URL:https://drive.google.com/drive/u/0/folders/folderID. -
权限:添加到文件夹的权限:
¥Permissions: The permissions to add to the folder:
-
角色:选择用户可以对文件夹执行的操作。可以是评论者、文件整理者、组织者、所有者、读者或作者之一。
¥Role: Select what users can do with the folder. Can be one of Commenter, File Organizer, Organizer, Owner, Reader, Writer.
-
类型:选择新权限的范围:
¥Type: Select the scope of the new permission:
- 用户:授予特定用户的权限,通过输入其电子邮件地址定义。
¥User: Grant permission to a specific user, defined by entering their Email Address.
- 组:授予特定组的权限,通过输入其电子邮件地址定义。
¥Group: Grant permission to a specific group, defined by entering its Email Address.
- 域:授予整个域的权限,由“域”定义。
¥Domain: Grant permission to a complete domain, defined by the Domain.
- 任何人:授予任何人权限。可以选择启用文件发现功能,使文件可通过搜索找到。
¥Anyone: Grant permission to anyone. Can optionally Allow File Discovery to make the file discoverable through search.
选项#
¥Options
- 邮件内容:要包含在通知电子邮件中的纯文本自定义消息。
¥Email Message: A plain text custom message to include in the notification email.
- 移动到新的所有者根目录:尝试在共享非共享驱动器中的项目时转移所有权时可用。启用后,将文件夹移动到新所有者的“我的云端硬盘”根文件夹。
¥Move to New Owners Root: Available when trying to transfer ownership while sharing an item not in a shared drive. When enabled, moves the folder to the new owner's My Drive root folder.
- 发送通知邮件:在与用户或群组共享时是否发送通知邮件。
¥Send Notification Email: Whether to send a notification email when sharing to users or groups.
- 所有权转移:是否将所有权转移给指定用户并将当前所有者的权限降级为写入权限。
¥Transfer Ownership: Whether to transfer ownership to the specified user and downgrade the current owner to writer permissions.
- 使用域管理员访问权限:是否以域管理员身份执行操作。
¥Use Domain Admin Access: Whether to perform the action as a domain administrator.
请参阅 REST 资源:files | Google 云端硬盘 API 文档了解更多信息。
¥Refer to the REST Resources: files | Google Drive API documentation for more information.