Sisk

Method

PathHelper.EnsureDirectoryExistance

Namespace
Sisk.Core.Helpers
Assembly
Sisk.Core.dll

EnsureDirectoryExistance(string) #

Ensures that the specified directory exists, creating it if necessary.

C#
public static bool EnsureDirectoryExistance(string directoryPath)

Parameters #

directoryPath string

The directory path that should exist.

Returns #

bool

true if the directory already existed; false if the directory was created.

Exceptions #

ArgumentNullException

Thrown when directoryPath is null or empty.

Type to search the documentation and the API reference.