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 18,704 8/25/2023
2.2.0 179 8/25/2023
2.1.0 55,137 8/25/2021
2.0.0 5,364 11/19/2020
1.1.4 7,470 6/20/2018
1.1.3 4,349 11/18/2017
1.1.2 93,956 8/8/2016
1.1.1 20,241 12/27/2015
1.1.0 1,147 12/13/2015
1.0.23 1,213 12/10/2015
1.0.21 8,648 9/2/2015
1.0.20 1,510 8/13/2015
1.0.19 1,413 3/19/2015
1.0.18 1,127 3/13/2015
1.0.17 1,093 3/13/2015
1.0.16 1,101 3/11/2015
1.0.15 1,209 3/1/2015
1.0.14 1,123 3/1/2015
1.0.13 1,347 2/17/2015
1.0.12 1,456 2/15/2015
1.0.11 1,132 2/1/2015
1.0.10 1,153 1/29/2015
1.0.9 1,128 1/29/2015
1.0.8 1,128 1/28/2015
1.0.7 1,149 1/27/2015
1.0.6 1,431 1/23/2015
1.0.5 1,168 1/15/2015
1.0.4 1,837 10/22/2014
1.0.3 1,138 10/11/2014
1.0.2 1,170 10/10/2014
1.0.1 1,160 10/8/2014
1.0.0 1,530 10/6/2014