Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

FluentFTP

> 开发工具
Open source

An FTP and FTPS client for .NET & .NET Standard, optimized for speed. Provides extensive FTP commands, File uploads/downloads, SSL/TLS connections, Automatic di

3.4K stars0 likes0 views
WebsiteGitHub

About

An FTP and FTPS client for .NET & .NET Standard, optimized for speed. Provides extensive FTP commands, File uploads/downloads, SSL/TLS connections, Automatic di

A project by Robin Rodricks & Michael Stiemke

FluentFTP is a fully managed FTP and FTPS client library for .NET & .NET Standard, optimized for speed. It provides extensive FTP commands, File uploads/downloads, SSL/TLS connections, Automatic directory listing parsing, File hashing/checksums, File permissions/CHMOD, FTP proxies, FXP transfers, UTF-8 support, Async/await support, Powershell support and more. It is written entirely in C#, with no external dependency. It has an extensive automated test suite which tests all its functionality against local FTP server docker containers. FluentFTP is released under the permissive MIT License, so it can be used in both proprietary and free/open source applications. ## Features - Full support for [FTP](https://github.com/robinrodricks/FluentFTP/wiki/FTP-Support), [FXP](https://github.com/robinrodricks/FluentFTP/wiki/FXP-Server-To-Server#how-does-fxp-transfer-work), [FTPS](https://github.com/robinrodricks/FluentFTP/wiki/FTP-Connection#faq_ftps), [FTPS with TLS 1.3](https://github.com/robinrodricks/FluentFTP/wiki/FTPS-Connection-using-GnuTLS), [FTPS with client certificates](https://github.com/robinrodricks/FluentFTP/wiki/FTP-Connection#faq_certs) and [FTPS Proxies](https://github.com/robinrodricks/FluentFTP/wiki/FTPS-Proxies) - Full support for over 30 [FTP server types](#server-support) with integration tests for all major servers - **File management:** - File and directory listing for [all major server types](https://github.com/robinrodricks/FluentFTP/wiki/Directory-Listing#faq_listings) (Unix, Windows/IIS, Azure, Pure-FTPd, ProFTPD, Vax, VMS, OpenVMS, Tandem, HP NonStop Guardian, [IBM z/OS and OS/400](https://github.com/robinrodricks/FluentFTP/wiki/IBM-zOS-and-OS-400-Support), Windows CE, Serv-U, etc) - Fully recursive directory listing and directory deletion (manual recursion and server-side recursion) - Easily upload and download a file from the server with [progress tracking](https://github.com/robinrodricks/FluentFTP/wiki/File-Transfer#how-can-i-track-the-progress-of-file-transfers) - Easily upload and download a directory from the server with [easy synchronization modes](https://github.com/robinrodricks/FluentFTP/wiki/Directory-Transfer#what-is-the-difference-between-the-mirror-and-update-modes) - Easily transfer a file or folder directly from [one server to another](https://github.com/robinrodricks/FluentFTP/wiki/FXP-Server-To-Server#how-does-fxp-transfer-work) using the FXP protocol - Conditionally transfer files using [rule based whitelisting and blacklisting](https://github.com/robinrodricks/FluentFTP/wiki/Rules#what-kinds-of-rules-are-supported-and-how-do-rules-work) - Automatically [verify the hash](https://github.com/robinrodricks/FluentFTP/wiki/File-Hashing#faq_verifyhash) of a file & retry transfer if hash mismatches - Configurable error handling (ignore/abort/throw) for multi-file transfers - Easily read and write file data from the server using standard streams - Create, append, read, write, rename, move and delete files and folders - Recursively deletes folders and all its contents - Get file/folder info (exists, size, security flags, modified date/time) - Get and set [file permissions](https://github.com/robinrodricks/FluentFTP/wiki/File-Permissions) (owner, group, other) - Absolute or relative paths (relative to the ["working directory"](https://github.com/robinrodricks/FluentFTP/wiki/File-Management)) - Compare a local file against a remote file using the [hash/checksum](https://github.com/robinrodricks/FluentFTP/wiki/File-Hashing#faq_comparefile) (MD5, CRC32, SHA-1, SHA-256, SHA-512) - Dereference of symbolic links to calculate the linked file/folder - [Throttling](https://github.com/robinrodricks/FluentFTP/wiki/File-Transfer#faq_throttle) of uploads and downloads with configurable speed limit - FTP monitors to [monitor folders on FTP servers](https://github.com/robinrodricks/FluentFTP/wiki/FTPS-Monitor) and trigger events when files are added/changed/removed - **FTP protocol:** - Automatic [FTP/FTPS connection negotiation](https://github.com/robinrodricks/FluentFTP/wiki/Automatic-Connection#faq_autoconnect) and detection of [working connection settings](https://github.com/robinrodricks/FluentFTP/wiki/Automatic-Connection#faq_autodetect) - Automatic detection of the [FTP server software](https://github.com/robinrodricks/FluentFTP/wiki/Server-Information#faq_servertype) and its [capabilities](https://github.com/robinrodricks/FluentFTP/wiki/Server-Information#faq_serverspecific) - Automatic [reconnection of FTP connections](https://github.com/robinrodricks/FluentFTP/wiki/Automatic-Reconnection) for broken or degraded sockets - Extensive support for [FTP commands](https://github.com/robinrodricks/FluentFTP/wiki/FTP-Support), including some server-specific commands - Easily send [server-specific](https://github.com/robinrodricks/FluentFTP/issues/88) FTP commands using the `Execute()` method - State-of-the-art [security system](https://github.com/robinrodricks/FluentFTP/wiki/Security) to prevent FTP command injection, directory traversal attacks, encoding bypasses, and parser confusion attacks - Explicit and Implicit [SSL connections](https://github.com/robinrodricks/FluentFTP/wiki/FTP-Connection#faq_ftps) are supported for the control and data connections using .NET's `SslStream` - Passive and active data connections (PASV, EPSV, PORT and EPRT) - Supports Unix CHMOD, PRET, ProFTPD's SITE MKDIR and RMDIR commands, Serv-U's RMDA command - Supports Realm and directory navigation for [IBM z/OS and OS/400](https://github.com/robinrodricks/FluentFTP/wiki/IBM-zOS-and-OS-400-Support) - Supports all types of [FTP Proxies](https://github.com/robinrodricks/FluentFTP/wiki/FTPS-Proxies) (HTTP 1.1, SOCKS4, SOCKS4a, SOCKS5, User@Host, BlueCoat) - [FTP command logging](https://github.com/robinrodricks/FluentFTP/wiki/Logging#faq_log) using `TraceListeners` (passwords omitted) to [trace](https://github.com/robinrodricks/FluentFTP/wiki/Logging#faq_trace) or [log output](https://github.com/robinrodricks/FluentFTP/wiki/Logging#faq_logfile) to a file - SFTP is not supported as it is FTP over SSH, a completely different protocol (use [SSH.NET](https://github.com/sshnet/SSH.NET) for that) - **Asynchronous support:** - Synchronous and asynchronous methods using `async`/`await` for all operations - Asynchronous support for the `IAsyncEnumerable` pattern for `GetListing` methods (see `GetListingAsyncEnumerable`) - All asynchronous methods can be cancelled midway by passing a `CancellationToken` - All asynchronous methods honor the `ReadTimeout` and automatically cancel themselves if timed out - Asynchronous support for [progress tracking](https://github.com/robinrodricks/FluentFTP/wiki/File-Transfer#how-can-i-track-the-progress-of-file-transfers) of file transfers during data upload/download - Implements its own internal locking in an effort to keep transactions synchronized - **Extensible:** - Easily add custom logging/tracing functionality using industry-standard [`ILogger`](https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.ilogger?view=dotnet-plat-ext-6.0) interface - Easily add support for custom non-standard FTP servers (see the [Custom Servers](https://github.com/robinrodricks/FluentFTP/wiki/Custom-Servers) page) - Easily add support for more file or directory filtering rules (simply extend [`FtpRule`](https://github.com/robinrodricks/FluentFTP/wiki/Class-FtpRule)) - Easily add support for more proxy types (simply extend [`FtpClientProxy`](https://github.com/robinrodricks/FluentFTP/blob/master/FluentFTP/Proxy/SyncProxy/FtpClientProxy.cs)) - Easily add unsupported directory listing parsers (see the [`CustomParser`](https://github.com/robinrodricks/FluentFTP/blob/master/FluentFTP.CSharpExamples/CustomParser.cs) example) - Easily add your own Powershell commands by extending the scripts in [`FluentFTP.ps1`](https://github.com/robinrodricks/FluentFTP/wiki/Powershell) ## Releases Stable binaries are released on NuGet, and contain everything you need to use FTP/FTPS in your .Net/CLR application. | Package | Latest Version | Downloads | Docs | |--------------- |----------- |----------- |-----------| | **[FluentFTP](https://www.nuget.org/packages/FluentFTP)** | [](https://www.nuget.org/packages/FluentFTP) | [](https://www.nuget.org/packages/FluentFTP) | [FluentFTP Docs](https://github.com/robinrodricks/FluentFTP/wiki) | | **[FluentFTP.Logging](https://www.nuget.org/packages/FluentFTP.Logging)** | [](https://www.nuget.org/packages/FluentFTP.Logging) | [](https://www.nuget.org/packages/FluentFTP.Logging) | [Logging Docs](https://github.com/robinrodricks/FluentFTP/wiki/Logging) | | **[FluentFTP.GnuTLS](https://www.nuget.org/packages/FluentFTP.GnuTLS)** | [](https://www.nuget.org/packages/FluentFTP.GnuTLS) | [](https://www.nuget.org/packages/FluentFTP.GnuTLS) | [GnuTLS Docs](https://github.com/robinrodricks/FluentFTP/wiki/FTPS-Connection-using-GnuTLS) | | **FluentFTP.BouncyCastle** | Fully managed TLS session reuse | Bouncy Castle TLS | [Bouncy Castle Docs](FluentFTP.BouncyCastle/README.md) | For usage see the [Quick Start Example](https://github.com/robinrodricks/FluentFTP/wiki/Quick-Start-Example) and the [Documentation](https://github.com/robinrodricks/FluentFTP/wiki) wiki. For features and fixes per release see [Release Notes](https://github.com/robinrodricks/FluentFTP/blob/master/RELEASES.md). ## Server Support FluentFTP is a client library that can connect to these FTP servers and perform all FTP operations. | Server | FTP/FTPS | Integration Tests | Special Features | | ------------------ | --------- | ------------ |---------- | | Azure FTP | ️ | | ✔️ [Detected by Domain](https://github.com/robinrodricks/FluentFTP/wiki/Server-Information#azure), Auto Configuration | | Apache FTP | ️ | ️ | | | ABB IDAL | ️ | | | | BFTPd | ️ | | | | Cerberus | ️ | | | | CrushFTP | ️ | | | | FileZilla Server | ️ | | | | FritzBox | ️ | | | | FTP2S3 Gateway | ️ | | | | glFTPd | ️ | | | | GlobalScape EFT | ️ | | | | Homegate FTP | ️ | | | | Huawei HG5xxx | ️ | | | | HP NonStop/Tandem | ️ | | ✔️ NonStop File Listing | | IBM z/OS | ️ | | ✔️ [zOS API](https://github.com/robinrodricks/FluentFTP/wiki/IBM-zOS-and-OS-400-Support), File Listing, File Size, Paths | | MikroTik RouterOS | ️ | | | | OpenVMS | ️ | | ✔️ VMS File Listing, Paths, Capability Assumption | | ProFTPD | ️ | | ✔️ `SITE RMDIR` and `SITE MKDIR` Commands | | PureFTPd | ️ | | | | PyFtpdLib | ️ | | | | Rumpus | ️ | | | | Serv-U | ️ | | ✔️ `RMDA` Command | | Solaris FTP | ️ | | | | Titan FTP | ️ | | | | TP-LINK | ️ | | | | VsFTPd | ️ | | | | Windows CE | ️ | | ✔️ Windows File Listing | | Windows Server/IIS | ️ | | ✔️ Windows File Listing | | WS_FTP | ️ | | | | WuFTPd | ️ | | ✔️ Capability Assumption | | XLight

GitHub Issues· 22 open

View all on GitHub
  • #1863

    Alternative to FluentFTP.GnuTLS: Proposed FluentFTP.BouncyCastle

    enhancementmajordiscussionSSL Session ResumeFluentFTP.BouncyCastleUpdated Sep 13, 2026
  • #1866

    FluentFTP.BouncyCastle: targetHost is never used, so the server certificate hostname is not verified

    ai-generatedUpdated Sep 13, 2026
  • #1855

    CurrentDomainUnhandledException during BeginAccept

    Updated Aug 28, 2026
  • #1859

    FtpListItem.FullName is incorrect when giving GetListing() a complete file name.

    incorrect usageUpdated Jul 24, 2026
  • #1858

    SanitizePath not working with null Client

    bugsecurityUpdated Jul 21, 2026
  • #1150

    [Request] Add support for OpenTelemetry telemetry instrumentation

    enhancementhelp wantedmajorUpdated Jun 19, 2026
  • #1854

    GetListingEnumerable Ignores FtpListOption.IncludeSelfAndParent flag

    Updated Jun 11, 2026
  • #1849

    "Object reference" null exception in GetListing after building data stream fails (EPSV not supported)

    bugwork in progresswindows-serverworkaroundresponse requestedUpdated May 28, 2026
  • #569

    ObjectDisposedException is thrown instead of TaskCancelledException when FtpClient.ConnectAsync() is called with cancelled token

    enhancementhelp wantedUpdated May 24, 2026
  • #1836

    Unable to download file with %20 in the name anymore

    questionfaqincorrect usagesecurityUpdated May 23, 2026

Highlights

  • •Full support for FTP, FXP, FTPS, FTPS with TLS 1.3, FTPS with client certificates and FTPS Proxies
  • •Full support for over 30 FTP server types with integration tests for all major servers
  • •File management:
  • •Fully recursive directory listing and directory deletion (manual recursion and server-side recursion)
  • •Easily upload and download a file from the server with progress tracking
  • •Easily upload and download a directory from the server with easy synchronization modes
  • •Easily transfer a file or folder directly from one server to another using the FXP protocol
  • •Conditionally transfer files using rule based whitelisting and blacklisting
  • •Automatically verify the hash of a file & retry transfer if hash mismatches
  • •Configurable error handling (ignore/abort/throw) for multi-file transfers

> Tags

C#ftpftp-clientftpsiis

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具