Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 2.46 KB

README.md

File metadata and controls

54 lines (36 loc) · 2.46 KB

Portable FTP server

Build status

This FTP server is written as PCL and has an abstract file system which allows e.g. Google Drive as backend.

License

The library is released under the MIT license.

Prerequisites

Compilation

  • Visual Studio 2015 / C# 6

Using

  • Visual Studio 2013 (maybe 2012 too)
  • .NET 4.5, .NET Core 5, Windows 8, Windows Phone 8.1, Windows Phone Silverlight 8.0, Xamarin iOS/Android

NuGet packages

Description Badge
Core library FubarDev.FtpServer
Virtual FTP file system FubarDev.FtpServer.FileSystem
Google Drive support FubarDev.FtpServer.FileSystem.GoogleDrive
OneDrive support FubarDev.FtpServer.FileSystem.OneDrive
Account management FubarDev.FtpServer.AccountManagement
FTPS (TLS) Support FubarDev.FtpServer.AuthTls

Example FTP server

// allow only anonymous logins
var membershipProvider = new AnonymousMembershipProvider();

// use %TEMP%/TestFtpServer as root folder
var fsProvider = new DotNetFileSystemProvider(Path.Combine(Path.GetTempPath(), "TestFtpServer"), false);

// Initialize the FTP server
var ftpServer = new FtpServer(fsProvider, membershipProvider, "127.0.0.1");

// Start the FTP server
ftpServer.Start();

Console.WriteLine("Press ENTER/RETURN to close the test application.");
Console.ReadLine();

// Stop the FTP server
ftpServer.Stop();