WebDAVClient 1.1.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package WebDAVClient --version 1.1.3
NuGet\Install-Package WebDAVClient -Version 1.1.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WebDAVClient" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WebDAVClient --version 1.1.3
#r "nuget: WebDAVClient, 1.1.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WebDAVClient as a Cake Addin
#addin nuget:?package=WebDAVClient&version=1.1.3

// Install WebDAVClient as a Cake Tool
#tool nuget:?package=WebDAVClient&version=1.1.3

WebDAVClient

About

Strongly-typed, async WebDAV Client implementation in C#.

WebDAVClient is based originally on https://github.com/kvdb/WebDAVClient. I've added Async support (instead of Callback), as well strong-types responses.

Contact

You can contact me on twitter @saguiitay.

NuGet

WebDAVClient is available as a NuGet package

Release Notes

  • 1.0.0 Initial release.

Usage

// Basic authentication required
var client = new WebDAVClient.Client(new NetworkCredential { UserName = "USERNAME" , Password = "PASSWORD"});
// OR without authentication
var client = new WebDAVClient.Client(new NetworkCredential());

// Set basic information for WebDAV provider
client.Server = "https://webdav.4shared.com";
client.BasePath = "/";

// Retrieve list of items in root folder
var files = await client.List();

// Find folder named 'Test'
var folder = files.FirstOrDefault(f => f.Href.EndsWith("/Test/"));

// Reload folder 'Test'
var folderReloaded = await client.Get(folder.Href);

// Retrieve list of items in 'Test' folder
var folderFiles = await client.List(folder.Href);

// Find first file in 'Test' folder
var folderFile = folderFiles.FirstOrDefault(f => f.IsCollection == false);
// Downlaod file into a Stream
var stream = await client.Download(folderFile.Href);

// Upload a file (with a random name) to 'Test' folder
var tempName = Path.GetRandomFileName();
var fileUploaded = await client.Upload(folder.Href, File.OpenRead(@"<PATH TO FILE>"), tempName);

// Create a folder (with a random name) in the 'Test' folder
tempName = Path.GetRandomFileName();
var folderCreated = await client.CreateDir(folder.Href, tempName);
Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid10 is compatible. 
MonoTouch monotouch10 is compatible. 
Xamarin.iOS xamarinios10 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.1 6,375 8/25/2023
2.2.0 140 8/25/2023
2.1.0 38,491 8/25/2021
2.0.0 4,910 11/19/2020
1.1.4 7,247 6/20/2018
1.1.3 4,272 11/18/2017
1.1.2 80,739 8/8/2016
1.1.1 14,832 12/27/2015
1.1.0 1,114 12/13/2015
1.0.23 1,187 12/10/2015
1.0.21 8,466 9/2/2015
1.0.20 1,491 8/13/2015
1.0.19 1,381 3/19/2015
1.0.18 1,096 3/13/2015
1.0.17 1,060 3/13/2015
1.0.16 1,069 3/11/2015
1.0.15 1,180 3/1/2015
1.0.14 1,091 3/1/2015
1.0.13 1,308 2/17/2015
1.0.12 1,418 2/15/2015
1.0.11 1,098 2/1/2015
1.0.10 1,115 1/29/2015
1.0.9 1,098 1/29/2015
1.0.8 1,095 1/28/2015
1.0.7 1,117 1/27/2015
1.0.6 1,369 1/23/2015
1.0.5 1,138 1/15/2015
1.0.4 1,804 10/22/2014
1.0.3 1,106 10/11/2014
1.0.2 1,141 10/10/2014
1.0.1 1,143 10/8/2014
1.0.0 1,369 10/6/2014