{"id":13661203,"url":"https://github.com/FubarDevelopment/FtpServer","last_synced_at":"2025-04-24T23:32:09.598Z","repository":{"id":37931706,"uuid":"43772099","full_name":"FubarDevelopment/FtpServer","owner":"FubarDevelopment","description":"Portable FTP server written in .NET","archived":false,"fork":false,"pushed_at":"2023-12-22T15:54:54.000Z","size":5400,"stargazers_count":500,"open_issues_count":46,"forks_count":165,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-04-03T02:36:05.133Z","etag":null,"topics":["dotnet","ftp-server"],"latest_commit_sha":null,"homepage":"http://fubardevelopment.github.io/FtpServer/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FubarDevelopment.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"fubar-coder","patreon":"FubarDevelopment"}},"created_at":"2015-10-06T19:02:16.000Z","updated_at":"2025-03-27T07:45:01.000Z","dependencies_parsed_at":"2024-06-22T20:31:37.664Z","dependency_job_id":null,"html_url":"https://github.com/FubarDevelopment/FtpServer","commit_stats":{"total_commits":670,"total_committers":26,"mean_commits":25.76923076923077,"dds":"0.22537313432835826","last_synced_commit":"edfe7a7b2ad4fc7bc98cead9b80880300ad3c716"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FubarDevelopment%2FFtpServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FubarDevelopment%2FFtpServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FubarDevelopment%2FFtpServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FubarDevelopment%2FFtpServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FubarDevelopment","download_url":"https://codeload.github.com/FubarDevelopment/FtpServer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250727755,"owners_count":21477366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet","ftp-server"],"created_at":"2024-08-02T05:01:30.972Z","updated_at":"2025-04-24T23:32:04.565Z","avatar_url":"https://github.com/FubarDevelopment.png","language":"C#","readme":"# Portable FTP server\n\n[![Build Status](https://dev.azure.com/fubar-development/ftp-server/_apis/build/status/FubarDevelopment.FtpServer?branchName=master)](https://dev.azure.com/fubar-development/ftp-server/_build/latest?definitionId=5\u0026branchName=master)\n\nThis FTP server is written as .NET Standard 2.0 library and has an\nabstract file system which allows e.g. Google Drive as backend.\n\n# License\n\nThe library is released under the [![MIT license](https://img.shields.io/github/license/mashape/apistatus.svg)](http://opensource.org/licenses/MIT).\n\n# Support the development\n\n[![Patreon](https://img.shields.io/endpoint.svg?url=https:%2F%2Fshieldsio-patreon.herokuapp.com%2FFubarDevelopment\u0026style=for-the-badge)](https://www.patreon.com/FubarDevelopment)\n\n# Prerequisites\n\n## Compilation\n\n* Visual Studio 2022 / C# 8.0\n\n## Using\n\n* Visual Studio 2022\n* .NET Standard 2.0 (everything **except** sample application, PAM authentication)\n* .NET Core 3.1 (PAM authentication)\n\n## NuGet packages\n\n| Package name                                   | Description                   | Badge |\n|------------------------------------------------|-------------------------------|-------|\n| `FubarDev.FtpServer`                           | Core library                  | [![FubarDev.FtpServer](https://img.shields.io/nuget/vpre/FubarDev.FtpServer.svg)](https://www.nuget.org/packages/FubarDev.FtpServer) |\n| `FubarDev.FtpServer.Abstractions`              | Basic types                   | [![FubarDev.FtpServer.Abstractions](https://img.shields.io/nuget/vpre/FubarDev.FtpServer.Abstractions.svg)](https://www.nuget.org/packages/FubarDev.FtpServer.Abstractions) |\n| `FubarDev.FtpServer.FileSystem.DotNet`         | `System.IO`-based file system | [![FubarDev.FtpServer.FileSystem.DotNet](https://img.shields.io/nuget/vpre/FubarDev.FtpServer.FileSystem.DotNet.svg)](https://www.nuget.org/packages/FubarDev.FtpServer.FileSystem.DotNet) |\n| `FubarDev.FtpServer.FileSystem.GoogleDrive`    | Google Drive as file system   | [![FubarDev.FtpServer.FileSystem.GoogleDrive](https://img.shields.io/nuget/vpre/FubarDev.FtpServer.FileSystem.GoogleDrive.svg)](https://www.nuget.org/packages/FubarDev.FtpServer.FileSystem.GoogleDrive) |\n| `FubarDev.FtpServer.FileSystem.InMemory`       | In-memory file system         | [![FubarDev.FtpServer.FileSystem.InMemory](https://img.shields.io/nuget/vpre/FubarDev.FtpServer.FileSystem.InMemory.svg)](https://www.nuget.org/packages/FubarDev.FtpServer.FileSystem.InMemory) |\n| `FubarDev.FtpServer.FileSystem.Unix`           | Unix file system              | [![FubarDev.FtpServer.FileSystem.Unix](https://img.shields.io/nuget/vpre/FubarDev.FtpServer.FileSystem.Unix.svg)](https://www.nuget.org/packages/FubarDev.FtpServer.FileSystem.Unix) |\n| `FubarDev.FtpServer.MembershipProvider.Pam`    | PAM membership provider       | [![FubarDev.FtpServer.MembershipProvider.Pam](https://img.shields.io/nuget/vpre/FubarDev.FtpServer.MembershipProvider.Pam.svg)](https://www.nuget.org/packages/FubarDev.FtpServer.MembershipProvider.Pam) |\n\n# Example FTP server\n\n## Creating the project\n\n```bash\ndotnet new console\ndotnet add package FubarDev.FtpServer.FileSystem.DotNet\ndotnet add package FubarDev.FtpServer\ndotnet add package Microsoft.Extensions.DependencyInjection\n```\n\n## Contents of `Main` in Program.cs\n\n```csharp\n// Setup dependency injection\nvar services = new ServiceCollection();\n\n// use %TEMP%/TestFtpServer as root folder\nservices.Configure\u003cDotNetFileSystemOptions\u003e(opt =\u003e opt\n    .RootPath = Path.Combine(Path.GetTempPath(), \"TestFtpServer\"));\n\n// Add FTP server services\n// DotNetFileSystemProvider = Use the .NET file system functionality\n// AnonymousMembershipProvider = allow only anonymous logins\nservices.AddFtpServer(builder =\u003e builder\n    .UseDotNetFileSystem() // Use the .NET file system functionality\n    .EnableAnonymousAuthentication()); // allow anonymous logins\n\n// Configure the FTP server\nservices.Configure\u003cFtpServerOptions\u003e(opt =\u003e opt.ServerAddress = \"127.0.0.1\");\n\n// Build the service provider\nusing (var serviceProvider = services.BuildServiceProvider())\n{\n    // Initialize the FTP server\n    var ftpServerHost = serviceProvider.GetRequiredService\u003cIFtpServerHost\u003e();\n\n    // Start the FTP server\n    ftpServerHost.StartAsync(CancellationToken.None).Wait();\n\n    Console.WriteLine(\"Press ENTER/RETURN to close the test application.\");\n    Console.ReadLine();\n\n    // Stop the FTP server\n    ftpServerHost.StopAsync(CancellationToken.None).Wait();\n}\n```\n","funding_links":["https://github.com/sponsors/fubar-coder","https://patreon.com/FubarDevelopment","https://www.patreon.com/FubarDevelopment"],"categories":["C\\#"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFubarDevelopment%2FFtpServer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFubarDevelopment%2FFtpServer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFubarDevelopment%2FFtpServer/lists"}