drive_download
Downloads a file or folder from Proton Drive to your local disk, with conflict options to skip, replace, or keep both versions.
Instructions
Download a file or folder from Proton Drive to the local filesystem. Requires authentication. For folders, downloads recursively. conflictStrategy defaults to 'skip' — pass 'replace' to overwrite an existing local file, or 'keep-both' to save under a unique name. Fails if the local parent directory does not exist. Returns {downloaded} count. Do not use to move files within Drive (use drive_move) or to read a small text file's contents (use drive_read_file if PROTON_DRIVE_SYNC_PATH is set).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | Absolute local destination path (must start with '/'). Parent directory must already exist. | |
| remotePath | Yes | Absolute remote Drive path to download (must start with '/'). E.g. /my-files/report.pdf | |
| conflictStrategy | No | 'skip' leaves an existing local file unchanged (default). 'replace' overwrites it — confirm with user first. 'keep-both' downloads under a unique name. |