Click or drag to resize

IFolderAsyncCreateFolderAsync Method

IT Hit WebDAV Classes Reference
Creates new WebDAV folder with the specified name in this folder.

Namespace:  ITHit.WebDAV.Server.Class1
Assembly:  ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 9.1.5460-Beta
Syntax
Task CreateFolderAsync(
	string name
)

Parameters

name
Type: SystemString
Name of the folder to create.

Return Value

Type: Task
.
Exceptions
ExceptionCondition
LockedExceptionThis folder was locked. Client did not provide the lock token.
NeedPrivilegesExceptionThe user doesn't have enough privileges.
InsufficientStorageExceptionQuota limit is reached.
DavExceptionIn other cases.
Examples

The code below is part of 'WebDAVServer.FileSystemStorage.AspNet' C# & VB samples provided with the SDK.

virtual public async Task CreateFolderAsync(string name)
{
    await RequireHasTokenAsync();
    dirInfo.CreateSubdirectory(name);
    await context.socketService.NotifyRefreshAsync(Path);
}
See Also