# Inspect FTP files and folders

Inspect FTP files and folders 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-18

Curated Examples

Use Transferetto to review FTP metadata, working directories, file sizes, and timestamps.

This pattern is useful when a script should inspect a remote FTP location before changing it, downloading from it, or publishing into it.

It is adapted from the source example at `Examples/Example29-FTPMetadataAndWorkdir.ps1`.

## When to use this pattern

- You need to confirm the current working directory.
- Metadata such as size or modified time should influence the next step.
- The script may need to create a directory before uploading into it.

## Example

```powershell
Import-Module Transferetto

$ftpClient = Connect-FTP -Server 'ftp.example.com' -Credential (Get-Credential)

Get-FTPWorkingDirectory -Client $ftpClient
Set-FTPWorkingDirectory -Client $ftpClient -Path '/public_html'
Get-FTPItem -Client $ftpClient -RemotePath '/public_html/index.html'
Get-FTPFileSize -Client $ftpClient -RemotePath '/public_html/index.html'
Get-FTPModifiedTime -Client $ftpClient -RemotePath '/public_html/index.html'

New-FTPDirectory -Client $ftpClient -RemotePath '/public_html/releases' -Force
Disconnect-FTP -Client $ftpClient
```

## What this demonstrates

- confirming and changing the remote working directory
- reading remote metadata before transfer or deployment steps
- creating a directory in preparation for later uploads

## Source

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

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