Sisk

Method

PathHelper.EnsureFileDirectoryExistance

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

EnsureFileDirectoryExistance(string) #

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

C#
public static bool EnsureFileDirectoryExistance(string filePath)

Parameters #

filePath string

The file path whose parent directory should exist.

Returns #

bool

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

Exceptions #

ArgumentNullException

Thrown when filePath is null or empty.

Type to search the documentation and the API reference.