Click or drag to resize

UtilCreateDirectoryIfNotExists Method

Creates a directory, if the directory does not already exist.

It only creates one level of directory. If the directory already exists, nothing is done.

The method returns false if it was not possible to create directory, becase the parent directory did not exists either. Otherwise it returns true.

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
public static bool CreateDirectoryIfNotExists(
	string folderName
)

Parameters

folderName
Type: SystemString
Full path and name of directory to create

Return Value

Type: Boolean
See Also