SPServer.CreateSecureDirectory method

Creates a directory in the local file system with all the correct access control lists (ACLs) to secure access for local administrators and members of the local administration worker process group.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public static DirectoryInfo CreateSecureDirectory(
	string path
)

Parameters

path
Type: System.String

A string that specifies the full path of the directory to create.

Return value

Type: System.IO.DirectoryInfo
If the specified directory already exists, the ACLs of the directory are reset, but no exception is thrown.
Show: