FTP_dotNET 1.1.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package FTP_dotNET --version 1.1.0
NuGet\Install-Package FTP_dotNET -Version 1.1.0
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="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FTP_dotNET --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FTP_dotNET, 1.1.0"
#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=1.1.0 // Install FTP_dotNET as a Cake Tool #tool nuget:?package=FTP_dotNET&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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);
}
}
}
There are no supported framework assets in this 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.
First release.