# Download files with FTP

Download files with FTP on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

Transferetto

Small PowerShell module with FTPS/SFTP functionality

[View on GitHub](https://github.com/EvotecIT/Transferetto) [Visit Website](#) [Releases](https://github.com/EvotecIT/Transferetto/releases/tag/Transferetto-v2.0.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/Transferetto)

Stars**93**

Forks**18**

Open issues**0**

PowerShell Gallery downloads**14067470**

Release**v2.0.4**

Language: C# Updated: 2026-11-17

Curated Examples

Use Transferetto to list and download remote FTP files from PowerShell.

This pattern is useful when a job needs to pull files from a remote FTP folder and decide which ones to download based on the current listing.

It is adapted from the source example at `Examples/Example11-ReceiveFiles.ps1`.

## When to use this pattern

- You need to review a remote listing before downloading.
- Only some of the remote files should be downloaded.
- The local destination should stay under script control.

## Example

```powershell
Import-Module Transferetto

$ftpClient = Connect-FTP -Server 'ftp.example.com' -Credential (Get-Credential)
$remoteFiles = Get-FTPList -Client $ftpClient -Path '/exports' |
    Where-Object Type -eq File |
    Sort-Object Modified -Descending |
    Select-Object -First 2

Receive-FTPFile -Client $ftpClient `
    -RemoteFile $remoteFiles `
    -LocalPath "$PSScriptRoot\Download" `
    -LocalExists Overwrite

Disconnect-FTP -Client $ftpClient
```

## What this demonstrates

- listing a remote FTP folder before downloading
- filtering the selection with normal PowerShell pipeline logic
- downloading the resulting files into a controlled local directory

## Source

- [Example11-ReceiveFiles.ps1](https://github.com/EvotecIT/Transferetto/blob/master/Examples/Example11-ReceiveFiles.ps1)

<!-- PowerForge markdown artifact sha256:A38AFFA743D0D1D1E9BAA6337678D2885C32EC55EFFD9E67DC2A8FA3C94216DA -->
