EnsureDirectoryExists(DirectoryInfo, DirectorySecurity) Method

Creates all directories and subdirectories in the specified @this if the directory doesn't already exists. This methods is the same as FileInfo.CreateDirectory however it's less ambigues about what happen if the directory already exists.
Namespace: Z.IO.Extensions
Assembly: Z.ExtensionMethods.WithNamespace.dll

Syntax

public static DirectoryInfo EnsureDirectoryExists(this DirectoryInfo this, DirectorySecurity directorySecurity)

Parameters

this
Type:  DirectoryInfo
The directory to create.
directorySecurity
The access control to apply to the directory.

Return Value

Type:  DirectoryInfo
Powered by ZZZ Projects .NET Documentation Generator 0.0.2 (Alpha)