VoDA.FtpServer 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package VoDA.FtpServer --version 1.0.0
NuGet\Install-Package VoDA.FtpServer -Version 1.0.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="VoDA.FtpServer" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VoDA.FtpServer --version 1.0.0
#r "nuget: VoDA.FtpServer, 1.0.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 VoDA.FtpServer as a Cake Addin
#addin nuget:?package=VoDA.FtpServer&version=1.0.0

// Install VoDA.FtpServer as a Cake Tool
#tool nuget:?package=VoDA.FtpServer&version=1.0.0

VoDA.FtpServer

nuget

Description

VoDA.FtpServer is a simple FTP server library. This library simplifies interaction with the FTP protocol down to the events level. All requests to the server related to authorization or working with data cause events that you must implement.

Quick start

To start the server, you need to create an FtpServer object and call the StartAsync function.

Server configuration takes place in the FtpServer constructor.

An example of an FTP server for working with the file system is given in the Test project.

Example

var server = new FtpServer(
(config) =>
{
    config.Port = 21; // enter the port
    config.Address = System.Net.IPAddress.Any; // 
    config.Certificate.CertificatePath = ".\\server.crt";
    config.Certificate.CertificateKey = ".\\server.key";
},
(fs) =>
{
    fs.OnDelete += (client, path) => {...}; // delete file event
    fs.OnRename += (client, from, to) => {...}; // rename item event
    fs.OnDownload += (client, path) => {...};   // download file event
    fs.OnGetList += (client, path) => {...};    // get items in folder event
    fs.OnExistFile += (client, path) => {...};  // file check event
    fs.OnExistFoulder += (client, path) => {...};   // folder check event
    fs.OnCreate += (client, path) => {...}; // file creation event
    fs.OnAppend += (client, path) => {...}; // append file event
    fs.OnRemoveDir += (client, path) => {...};  // remove folder event
    fs.OnUpload += (client, path) => {...}; // upload file event
},
(auth) =>
{
    auth.UseAuthorization = true; // enable or disable authorization
    auth.UsernameVerification += (username) => {...}; // username verification
    auth.PasswordVerification += (username, password) => {...}; //verification of username and password
});
// Start FTP-serer
server.StartAsync(System.Threading.CancellationToken.None).Wait();
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.3.8 583 9/11/2022
1.3.7 363 8/31/2022
1.3.6 383 8/31/2022
1.3.5 375 8/30/2022
1.3.4 398 7/27/2022
1.3.3 376 7/22/2022
1.3.2 391 7/18/2022
1.3.1 392 7/14/2022
1.3.0 413 7/13/2022
1.2.0 412 7/11/2022
1.1.0 391 7/11/2022
1.0.0 424 7/5/2022