Share via


CreateFolder Method

The CreateFolder method of the Document Workspace service creates a subfolder in a document library of the current Document Workspace site.

Parameters

url  String. The proposed site-based URL of the folder to create; for example, "Shared Documents/folder_name."

Return Value

String Returns an empty <Result/> when successful.

Error Values

The following table shows errors that may be returned by the CreateFolder method.

Error Code Description
DWSError.NoAccess (3) The user does not have sufficient rights.
DWSError.FolderNotFound (10) The parent folder does not exist.

Remarks

The CreateFolder method creates a new subfolder in a document library of the current Document Workspace site.

Example

The following code example shows the use of the CreateFolder method to create a new subfolder in the default document library of the site. The absolute URL of the new folder is http://server_name/sites/user_name/workspace_name/Shared Documents/folder_name. For more information about the full text of the helper functions used in this example, see the CanCreateDwsUrl method.

Requirements

Platforms: Microsoft Windows Server 2003

Web Reference: http://Server_Name/_vti_bin/Dws.asmx