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: about 1 year 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 (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-02T17:40:39.000Z (over 1 year ago)
- Last Synced: 2025-01-06T05:02:51.406Z (over 1 year ago)
- Topics: asp-net-core, middleware, nuget, webdav, webdav-server
- Language: C#
- Homepage:
- Size: 60.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Aiursoft WebDav
[](https://gitlab.aiursoft.cn/aiursoft/webdav/-/blob/master/LICENSE)
[](https://gitlab.aiursoft.cn/aiursoft/webdav/-/pipelines)
[](https://gitlab.aiursoft.cn/aiursoft/webdav/-/pipelines)
[](https://www.nuget.org/packages/Aiursoft.webdav/)
[](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.
## How to install
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.