FileHelper.EnsureDirectoryExists Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Overloads

EnsureDirectoryExists(DirectoryInfo) Makes sure the directory exists.
EnsureDirectoryExists(FileInfo) Makes sure the parent directory of the file exists.

EnsureDirectoryExists(DirectoryInfo)

Makes sure the directory exists.

public static void EnsureDirectoryExists(this DirectoryInfo dir)

Parameters

dir
System.IO.DirectoryInfo

EnsureDirectoryExists(FileInfo)

Makes sure the parent directory of the file exists.

public static void EnsureDirectoryExists(this FileInfo file)

Parameters

file
System.IO.FileInfo