drive_upload
Upload local files or folders to Proton Drive with end-to-end encryption. Recursively preserves folder structure and returns counts, failing the call if any upload fails.
Instructions
Upload a local file or folder to Proton Drive with end-to-end encryption. Requires authentication. For folders, uploads recursively and preserves directory structure. Returns {uploaded, skipped, failed} counts — fails the call if failed > 0 (common causes: quota exceeded, destination path not found, permission denied). Conflict strategies are set separately for files and folders (CLI v0.8.0+) — both default to 'skip'. Do not use to move files already on Drive (use drive_move) or to write text content directly (use drive_write_file if PROTON_DRIVE_SYNC_PATH is set). Ensure destination folder exists first with drive_list; create it with drive_mkdir if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | Absolute local filesystem path of the file or folder to upload (must start with '/'). | |
| remotePath | Yes | Absolute remote Drive destination folder path (must start with '/'). E.g. /my-files/Reports | |
| fileConflictStrategy | No | 'skip' leaves an existing remote file unchanged (default). 'create-new-revision' uploads as a new version of the existing file, keeping history. 'rename' adds a unique suffix to the uploaded file's name. 'replace' trashes the remote file and uploads the local copy in its place — confirm with user first. | |
| folderConflictStrategy | No | 'skip' leaves an existing remote folder unchanged (default). 'merge' merges the uploaded folder's contents into the existing one. 'rename' adds a unique suffix to the uploaded folder's name. 'replace' trashes the remote folder and uploads the local copy in its place — confirm with user first. |