Click or drag to resize

UtilCreateDirectoryForFileIfNotExists Method

Creates a directory for the file, 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: 19.0.0.0 (11.1.1.1111)
Syntax
public static bool CreateDirectoryForFileIfNotExists(
	string fileName
)

Parameters

fileName
Type: SystemString
Full path and name of file to create directory for

Return Value

Type: Boolean

[Missing <returns> documentation for "M:DHI.Mike1D.Generic.Util.CreateDirectoryForFileIfNotExists(System.String)"]

See Also