Red.FTP 1.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package Red.FTP --version 1.0.4
                    
NuGet\Install-Package Red.FTP -Version 1.0.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Red.FTP" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Red.FTP" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Red.FTP" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Red.FTP --version 1.0.4
                    
#r "nuget: Red.FTP, 1.0.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Red.FTP@1.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Red.FTP&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=Red.FTP&version=1.0.4
                    
Install as a Cake Tool

Red.FTP

Red.FTP is a .NET library for easy and secure FTP connections, including support for FTPS (FTP over SSL/TLS).

Features

  • Standard FTP connections
  • Support for FTPS (FTP over SSL/TLS)
  • Task cancellation handling with CancellationToken
  • Sending and receiving FTP commands

Example

Login

<sup> //Create Client whit default config var client = FtpClientFactory.CreateTcpClient(); var conn = await client.CreateConnectionAsync("Host");

        //Authentication
        client.SetCredentials("FtpUSer", "FtpPassword");
        var auth = await client.AuthAsync();

</sup>

Get Files List

<sup>

        var cancelationToken = new CancellationTokenSource();
        cancelationToken.CancelAfter(TimeSpan.FromSeconds(100));
        string remotePath = "/"

        var file = await client.GetFilesAsync(remotePath, cancelationToken.Token);

</sup>

Download file

<sup>

        var cancelationToken = new CancellationTokenSource();
        cancelationToken.CancelAfter(TimeSpan.FromSeconds(100));
        string remotePath = "/"
        string localPath = "C:"

        var file = await client.GetFilesAsync(localPath, remotePath,cancelationToken.Token);

</sup>

Upload file

<sup>

        var cancelationToken = new CancellationTokenSource();
        cancelationToken.CancelAfter(TimeSpan.FromSeconds(100));
        string localFile = "c:/test.zip"
        string remotePath = "/"

        var file = await client.GetFilesAsync(localPath, remotePath, cancelationToken.Token);

</sup>

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6 240 10/31/2024
1.0.5 217 8/9/2024
1.0.4 208 8/9/2024
1.0.3 217 8/7/2024
1.0.2 207 8/6/2024
1.0.1 193 8/6/2024
1.0.0 195 8/6/2024

-Fix FTP Connection Bug