This FTP server is written as PCL and has an abstract file system which allows e.g. Google Drive as backend.
The library is released under the MIT license.
- Visual Studio 2015 / C# 6
- 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
A NuGet package is available:
// 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();