# Inspect remote files with PowerShell

Inspect remote files with PowerShell on Evotec with installation guidance, setup notes, reference details, and project documentation.

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**94**

Forks**18**

Open issues**0**

PowerShell Gallery downloads**14067470**

Release**v2.0.4**

Language: C# Updated: 2026-11-23

Documentation

Use Transferetto to list, inspect, and verify remote files and folders before acting on them.

A lot of transfer automation should inspect first and act second. Transferetto includes listing and metadata cmdlets so a script can decide what to move before it starts writing or downloading content.

## Common inspection tasks

- list the contents of a remote folder
- filter to files or directories
- inspect timestamps, sizes, and effective paths
- check the current working directory or switch into a known one
- test whether a path exists before creating or overwriting it

## FTP inspection

```powershell
Import-Module Transferetto

$ftpClient = Connect-FTP -Server 'ftp.example.com' -Credential (Get-Credential)
Get-FTPWorkingDirectory -Client $ftpClient
Get-FTPList -Client $ftpClient -Path '/public_html'
Get-FTPItem -Client $ftpClient -RemotePath '/public_html/index.html'
Get-FTPFileSize -Client $ftpClient -RemotePath '/public_html/index.html'
Disconnect-FTP -Client $ftpClient
```

## SFTP inspection

```powershell
Import-Module Transferetto

$sftpClient = Connect-SFTP -Server 'sftp.example.com' -Credential (Get-Credential)
Get-SFTPList -SftpClient $sftpClient -Path '/var/www/site'
Get-SFTPItem -SftpClient $sftpClient -Path '/var/www/site/index.html'
Get-SFTPChmod -SftpClient $sftpClient -Path '/var/www/site/index.html'
Disconnect-SFTP -SftpClient $sftpClient
```

## Why this matters

Inspection first makes scripts safer. It lets you filter down to the items you actually want, review metadata, and make overwrite or cleanup decisions from the data the server is returning right now.

## Related pages

- [Transfer files with PowerShell](../transfer-files-with-powershell/)
- [Manage SFTP permissions example](/projects/transferetto/examples/manage-sftp-permissions/)
- [Inspect FTP files and folders example](/projects/transferetto/examples/inspect-ftp-files-and-folders/)

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