download_file
Download a NAS file or folder to a local folder, with folders saved as ZIP archives. Choose a destination folder and optionally overwrite existing local files.
Instructions
Download a NAS file to a folder on this machine (where this server runs). A folder downloads as a ZIP of it, saved as <folder>.zip; a whole shared folder can't be downloaded. An existing local file is not replaced unless overwrite is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The NAS file or folder (`/video/Movies/Dune.mkv`). | |
| filename | No | Name to save as, a plain file name with no folders (default: the NAS name, or `<folder>.zip` for a folder). | |
| overwrite | No | Replace a local file of the same name (default false: the call fails and the local file is kept). | |
| dest_folder | No | Local folder to save into: one of the allowed local folders (/root/Downloads), or a folder below it. Optional when a default download folder is configured. |