Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aiursoftweb/webdav
Mirror of https://gitlab.aiursoft.cn/aiursoft/webdav
https://github.com/aiursoftweb/webdav
asp-net-core middleware nuget webdav webdav-server
Last synced: 3 months ago
JSON representation
Mirror of https://gitlab.aiursoft.cn/aiursoft/webdav
- Host: GitHub
- URL: https://github.com/aiursoftweb/webdav
- Owner: AiursoftWeb
- License: other
- Created: 2024-02-19T17:12:54.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-10-07T07:00:08.000Z (3 months ago)
- Last Synced: 2024-10-14T03:02:57.198Z (3 months ago)
- Topics: asp-net-core, middleware, nuget, webdav, webdav-server
- Language: C#
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Aiursoft WebDav
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitlab.aiursoft.cn/aiursoft/webdav/-/blob/master/LICENSE)
[![Pipeline stat](https://gitlab.aiursoft.cn/aiursoft/webdav/badges/master/pipeline.svg)](https://gitlab.aiursoft.cn/aiursoft/webdav/-/pipelines)
[![Test Coverage](https://gitlab.aiursoft.cn/aiursoft/webdav/badges/master/coverage.svg)](https://gitlab.aiursoft.cn/aiursoft/webdav/-/pipelines)
[![NuGet version (Aiursoft.WebDav)](https://img.shields.io/nuget/v/Aiursoft.webdav.svg)](https://www.nuget.org/packages/Aiursoft.webdav/)
[![ManHours](https://manhours.aiursoft.cn/r/gitlab.aiursoft.cn/aiursoft/webdav.svg)](https://gitlab.aiursoft.cn/aiursoft/webdav/-/commits/master?ref_type=heads)WebDav is an ASP.NET Core middleware that provides a WebDav server for your application.
## Installation
To install `Aiursoft.WebDav` to your project from [nuget.org](https://www.nuget.org/packages/Aiursoft.WebDav/):
```bash
dotnet add package Aiursoft.WebDav
```## How to use
You can use this middleware in your `Startup.cs` file:
```csharp
var IsReadOnlyWebDavServer = false;
var webDavRoot = "/tmp";var builder = WebApplication.CreateBuilder();
builder.Services
.AddWebDav(x => x.IsReadOnly = IsReadOnlyWebDavServer)
.AddFilesystem(options => options.SourcePath = webDavRoot);var host = builder.Build();
// Use it as a middleware.
host.UseWebDav(new PathString("/webdav"));
```## How to contribute
There are many ways to contribute to the project: logging bugs, submitting pull requests, reporting issues, and creating suggestions.
Even if you with push rights on the repository, you should create a personal fork and create feature branches there when you need them. This keeps the main repository clean and your workflow cruft out of sight.
We're also interested in your feedback on the future of this project. You can submit a suggestion or feature request through the issue tracker. To make this process more effective, we're asking that these include more information to help define them more clearly.