Skip to main content

Downloading Files and Folders

The CLI App can be used to download files and folders from your Files.com site. Downloads can be made from any folder, including those located within Remote Server Mounts.

Downloading Files and Folders

To download a file, use the command:

files-cli download /remote/path/to/file.txt /local/path/to/file.txt

or

files-cli download /remote/path/to/file.txt /local/path/to/folder/

To download a folder, use the command:

files-cli download /remote/path/to/folder/ /local/path/to/folder/

Limiting File Chunking

The download operation will attempt to download each file as quickly as possible by breaking the file into multiple pieces, or chunks, and transferring those chunks in parallel.

Although chunking speeds up file transfers, some remote systems are unable to support this capability, causing failed or partial transfers.

If you have problems downloading files from a Files.com folder which is stored on a Remote Server Mount, you can disable file chunking by using the --download-files-as-single-stream flag.

files-cli download /remote/path/to/folder/ /local/path/to/folder/ --download-files-as-single-stream

The --download-files-as-single-stream flag will cause the download to be slower but more resilient for downloads from a Remote Server Mount folder.

Viewing Connection Information

You can see the connection information, showing the number of open data connections, the number of open API connections, and the network throughput, by using the --connection-metrics flag.

files-cli download /remote/path/to/folder/ /local/path/to/folder/ --connection-metrics

Ready to Transform Your File Infrastructure?

Join over 4,000 organizations that trust Files.com to manage their mission-critical file flows. Start your free trial today and see why we're the #1 rated file orchestration platform.

No credit card required • 7-day free trial • Setup in minutes