Skip to content

mutac/FtpServer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portable FTP server

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

A NuGet package is available:

  • Core library

    FubarDev.FtpServer

  • Virtual FTP file system

    FubarDev.FtpServer.FileSystem

  • Google Drive support

    FubarDev.FtpServer.FileSystem.GoogleDrive

  • Account management

    FubarDev.FtpServer.AccountManagement

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();

About

Portable FTP server written in .NET

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.9%
  • PowerShell 0.1%