Summary
Returns the base directory for a given path expression. The base directory is considered to be
the directory of the file if there are no wild cards, or the directory path before the first
set of wild cards.
Syntax
public static string BaseDirectory(string pathExpression, bool pathPointsToFile = false)
Parameters
Name |
Type |
Description |
pathExpression |
string |
The path expression. |
pathPointsToFile |
bool |
A flag that indicates whether or not the path expression points to a file or a directory. |
Return Value
Type |
Description |
string |
Returns the base directory for the expression.
|