FTP_dotNET 2.0.3

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.

Install-Package FTP_dotNET -Version 2.0.3
dotnet add package FTP_dotNET --version 2.0.3
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FTP_dotNET, 2.0.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

#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();
}

}

#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();
}

}

Release Notes

First release.

Dependencies

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 History

Version Downloads Last updated
2.0.3 92 5/20/2021
2.0.2 55 5/20/2021
2.0.1 62 5/20/2021
2.0.0 106 1/31/2021
1.3.4 203 8/14/2020
1.3.3 197 8/7/2020
1.3.2 172 8/7/2020
1.3.1 180 8/7/2020
1.3.0 192 5/14/2020
1.2.0 213 5/10/2020
1.1.0 203 4/17/2020
1.0.0 200 4/17/2020