FTP_dotNET 1.1.0

There is a newer version of this package available.
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                
#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                

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.

Version Downloads Last updated
2.0.3 544 5/20/2021
2.0.2 324 5/20/2021
2.0.1 341 5/20/2021
2.0.0 387 1/31/2021
1.3.4 519 8/14/2020
1.3.3 491 8/7/2020
1.3.2 461 8/7/2020
1.3.1 465 8/7/2020
1.3.0 498 5/14/2020
1.2.0 553 5/10/2020
1.1.0 480 4/17/2020
1.0.0 498 4/17/2020

First release.