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.
#addin nuget:?package=Red.FTP&version=1.0.4
                    
Install Red.FTP as a Cake Addin
#tool nuget:?package=Red.FTP&version=1.0.4
                    
Install Red.FTP 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. 
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 107 5 months ago
1.0.5 131 8 months ago
1.0.4 119 8 months ago
1.0.3 104 8 months ago
1.0.2 102 8 months ago
1.0.1 101 8 months ago
1.0.0 103 8 months ago

-Fix FTP Connection Bug