upload_folder
Recursively upload a local folder to Google Drive, handling deeply nested structures. Use dry_run to preview changes before executing.
Instructions
Recursively upload a local folder to Google Drive using BFS traversal. More robust than recursion - handles deep trees and reports errors gracefully.
Args: user_google_email: The user's Google email address. Required. local_path: Path to the local folder to upload. parent_folder_id: Optional parent folder ID in Drive. If None, uploads to root. dry_run: If True (default), return planned upload summary without mutating Drive or sync metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| local_path | Yes | ||
| parent_folder_id | No | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |