UtilFileExists(String, String, Boolean) Method

Check if file exists. If AutoFileCaseUpdate is set, allowing case differences (Linux).

If a file is found with same name but different case, the path is updated to match the case.

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static bool FileExists(
	ref string path,
	string basePath,
	out bool pathMod
)

Parameters

path  String
File path to check. Can be relative or absolute
basePath  String
Base path to use when path is relative. If null, the current directory is used.
pathMod  Boolean
Return flag indicating of the filePath was updated

Return Value

Boolean
True if file exists

See Also