Method pathname.isFullPathExpand
Overload
Expands environment variables and calls/returns pathname.isFullPath.
public static bool isFullPathExpand(ref string path, bool? strict = null)
Parameters
path (string)
Any string. Can be |
strict (bool?)
What to do if path looks like starts with and environment variable or known folder but the variable/folder does not exist:
|
Returns
bool
|
Remarks
Returns true
if path matches one of these wildcard patterns:
-
@"?:\*"
- local path, like@"C:\a\b.txt"
. Here?
is A-Z, a-z. -
@"?:"
- drive name, like@"C:"
. Here?
is A-Z, a-z. -
@"\\*"
- network path, like@"\\server\share\..."
. Or has prefix@"\\?\"
.
Supports '/'
characters too.
Supports only file-system paths. Returns false
if path is URL (pathname.isUrl) or starts with "::"
.