EnsureDirectoryExists(FileInfo) 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 FileInfo this)

Parameters

this
Type:  FileInfo
The directory @this to create.

Return Value

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