FTP_dotNET 2.0.3

dotnet add package FTP_dotNET --version 2.0.3                
NuGet\Install-Package FTP_dotNET -Version 2.0.3                
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="FTP_dotNET" Version="2.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FTP_dotNET --version 2.0.3                
#r "nuget: FTP_dotNET, 2.0.3"                
#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.
// Install FTP_dotNET as a Cake Addin
#addin nuget:?package=FTP_dotNET&version=2.0.3

// Install FTP_dotNET as a Cake Tool
#tool nuget:?package=FTP_dotNET&version=2.0.3                

#DOCS FTP Client Implementation

FTP_dotNET is a .NET FTP component and FTPS component. Includes automatic directory listing parser for the majority of popular FTP servers on Windows, Unix and Netware platforms.

Supported platforms:

  • .NET Framework 3.5, 4, 4.5, 4.6 & 4.7

Example: class Program { static void Main(string[] args) { string host = "ftp://ftp.fbook.it/"; string user = "faceftp"; string pass = "4dsd6ssdf1";

	// Create Object Instance
	FTPclient ftpClient = new FTPclient(host, user, pass);

	ftpClient.CurrentDirectory = "/remote/2020/";

	string localFilename = @"C:\Test.txt";

	string targetFilename = "Test.txt";

	try
	{
		int i = 0;
		List<string> LstDirRoot = ftpClient.ListDirectory("");
		foreach (string folder in LstDirRoot)
		{
			if (!string.IsNullOrEmpty(LstDirRoot[i]))
			{
				Console.WriteLine(i + " - " + LstDirRoot[i]);
				i++;
			}
		}
	}
	catch (Exception ex)
	{
		Console.WriteLine(ex.Message);
	}



	try
	{
		// Create new FileInfo object and get the Length.
		FileInfo f = new FileInfo(localFilename);
		long s1 = f.Length;

		// Get the Size of a File
		long s2 = ftpClient.GetFileSize(targetFilename);
		if (s1 > s2)
		{
			// Upload a File
			ftpClient.Upload(localFilename, targetFilename);
		}

		// Release Resources
		//ftpClient = null;
	}
	catch (Exception ex)
	{
		Console.WriteLine(ex.Message);
	}

	Console.ReadLine();
}

}

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has 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
2.0.3 548 5/20/2021
2.0.2 326 5/20/2021
2.0.1 343 5/20/2021
2.0.0 389 1/31/2021
1.3.4 521 8/14/2020
1.3.3 493 8/7/2020
1.3.2 463 8/7/2020
1.3.1 467 8/7/2020
1.3.0 500 5/14/2020
1.2.0 555 5/10/2020
1.1.0 484 4/17/2020
1.0.0 502 4/17/2020

First release.