Skip to main content

Copy File

Copies or moves files between cloud storage locations.

Overview

The Copy File node duplicates or relocates files in cloud storage. Use it to:

  • Copy files to backup locations
  • Move processed files to archive folders
  • Organize files by category
  • Create file copies with new names

Parameters

ParameterDescriptionRequired
FileFile to copy or moveYes
File DestinationWhere to copy the fileYes
New File NameRename the file (optional)No
Delete OriginalRemove source file (move operation)No

File

The file to copy. Typically from a trigger or upstream node:

{{$item}}
{{$item.data.file}}

File Destination

Configure where to copy the file, including:

  • Target folder in Google Drive
  • Other supported cloud storage locations

New File Name

Optional new name for the copied file. The original extension is preserved if not specified in the new name:

archived_{{$item.file.name}}
{{$item.data.processedDate}}_{{$item.file.name}}

Delete Original

When enabled, the source file is removed after copying—effectively a move operation.

Output

The item passes through with updated file information reflecting the new location.

Examples

Archive Processed Files

Move files after processing:

[Google Drive Trigger] → [Data Extractor] → [Copy File: delete original]
  1. File: {{\$item}}
  2. File Destination: Archive folder
  3. Delete Original: enabled

Organize by Category

Copy to category-specific folders:

[Google Drive Trigger] → [Switch: by type] → [Copy File: invoices folder]
→ [Copy File: receipts folder]

Backup with Timestamp

Create timestamped backup copies:

  1. File: {{\$item}}
  2. File Destination: Backup folder
  3. New File Name: {{new Date().toISOString().split('T')[0]}}_{{\$item.file.name}}
  4. Delete Original: disabled

Rename on Copy

Add prefix to copied files:

  1. File: {{\$item}}
  2. File Destination: Processed folder
  3. New File Name: processed_{{\$item.file.name}}

Tips

  • Use with Google Drive Trigger to process and organize incoming files
  • Enable "Delete Original" for move operations
  • New File Name preserves extension if not specified
  • Use expressions for dynamic folder organization
  • Handle errors for missing files or permission issues
  • The destination folder must exist