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 .
- 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
Description | Badge |
---|---|
Core library | |
Virtual FTP file system | |
Google Drive support | |
OneDrive support | |
Account management | |
FTPS (TLS) Support |
// 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();