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

Showing the top 1 NuGet packages that depend on WebDAVClient:

Package Downloads
SuperiorAcumaticaPackage

Dependencies required to compile the SuperiorAcumaticaSolution for Acumatica 2024R2 Build 24.201.0052

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.1 17,869 8/25/2023
2.2.0 174 8/25/2023
2.1.0 54,433 8/25/2021
2.0.0 5,338 11/19/2020
1.1.4 7,460 6/20/2018
1.1.3 4,339 11/18/2017
1.1.2 93,118 8/8/2016
1.1.1 19,904 12/27/2015
1.1.0 1,145 12/13/2015
1.0.23 1,211 12/10/2015
1.0.21 8,646 9/2/2015
1.0.20 1,508 8/13/2015
1.0.19 1,411 3/19/2015
1.0.18 1,124 3/13/2015
1.0.17 1,091 3/13/2015
1.0.16 1,098 3/11/2015
1.0.15 1,207 3/1/2015
1.0.14 1,121 3/1/2015
1.0.13 1,343 2/17/2015
1.0.12 1,454 2/15/2015
1.0.11 1,129 2/1/2015
1.0.10 1,151 1/29/2015
1.0.9 1,125 1/29/2015
1.0.8 1,125 1/28/2015
1.0.7 1,145 1/27/2015
1.0.6 1,429 1/23/2015
1.0.5 1,166 1/15/2015
1.0.4 1,835 10/22/2014
1.0.3 1,136 10/11/2014
1.0.2 1,168 10/10/2014
1.0.1 1,157 10/8/2014
1.0.0 1,518 10/6/2014