Click or drag to resize

IFolderCreateFolder 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: 4.5.3121.0
Syntax
void CreateFolder(
	string name
)

Parameters

name
Type: SystemString
Name of the folder to create.

Return Value

Type: 
.
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.NtfsStorage' sample provided with the SDK.

virtual public void CreateFolder(string name)
{
    RequireHasToken();
    context.FileOperation(
        this,
        () => dirInfo.CreateSubdirectory(name),
        Privilege.Bind);
}
See Also