ActionEngineUtilAssureFolder Method

Assure the specified folder path exists and return it to the caller if so.

Definition

Namespace: ActionEngine
Assembly: ActionEngine (in ActionEngine.dll) Version: 26.2117.4453
C#
public static DirectoryInfo AssureFolder(
	string pathName,
	bool create = false,
	string message = "",
	bool quiet = false
)

Parameters

pathName  String
Full path name of the folder to test for.
create  Boolean  (Optional)
Value indicating whether to create the path if it doesn't yet exist.
message  String  (Optional)
Message to display with console messages about this folder.
quiet  Boolean  (Optional)
Value indicating whether to suppress messages.

Return Value

DirectoryInfo
Reference to the DirectoryInfo representing the folder if it was possible that the folder existed. Null if the path led to a file or was not created.

See Also