Twake Drive icon

Twake Drive

Basic Twake Drive

File → Copy File

AI-generated

Overview

This node operation copies a file within the Twake Drive system. It allows users to select the source file either via a dropdown browsing interface or by manually entering the file ID. The destination folder can also be selected similarly, either by browsing or manual ID entry. Users can optionally specify a new name for the copied file. This operation is useful for duplicating files within the same or different folders in Twake Drive, facilitating file management and organization.

Use Case Examples

  1. Copy a file from one folder to another by selecting the source file and destination folder from dropdown lists.
  2. Manually specify the file ID of the source file and the destination folder ID to copy a file to a specific location.
  3. Copy a file and rename it during the copy process to maintain version control or clarity.

Properties

Name Meaning
File Select Mode Determines how the source file is selected, either by browsing a dropdown list or by manually entering the file ID.
Target Folder (Source) Name or ID The folder containing the source file. Can be selected from a list or specified by ID. Leave empty for root folder. Only shown if File Select Mode is 'Dropdown'.
File (in This Folder) Name or ID The source file to copy, selected from the list of files in the specified source folder. Only shown if File Select Mode is 'Dropdown'.
File ID (Manual) The ID of the source file to copy, manually entered. Only shown if File Select Mode is 'By ID'.
Destination Select Mode Determines how the destination folder is selected, either by browsing a dropdown list or by manually entering the folder ID.
Parent Folder (Destination) Name or ID The destination folder where the file will be copied. Can be selected from a list or specified by ID. Leave empty for root folder. Only shown if Destination Select Mode is 'Dropdown'.
Destination Folder ID (Manual) The ID of the destination folder, manually entered. Only shown if Destination Select Mode is 'By ID'.
Name of the New File Boolean flag indicating whether to set a custom name for the copied file.
New Name The new name for the copied file if a custom name is set.

Output

JSON

  • id - The unique identifier of the copied file.
  • name - The name of the copied file, which may be the original or a new custom name.
  • parentId - The ID of the destination folder where the file was copied.
  • mimeType - The MIME type of the copied file.
  • size - The size of the copied file in bytes.
  • createdAt - The timestamp when the file was copied/created.

Dependencies

  • Twake Drive API access via OAuth2 credentials

Troubleshooting

  • Ensure the source file ID or selection is valid and accessible; invalid IDs or permissions issues will cause errors.
  • Verify the destination folder ID or selection is correct and writable.
  • If setting a custom name, ensure the new name is valid and does not conflict with existing files in the destination folder.
  • Common errors include permission denied, file not found, or invalid folder ID, which can be resolved by checking credentials and input parameters.

Links

Discussion