Helper class for finding directories and files by their names.
sealed class
|
PathFinder
|
The base directory for finding files and subdirectories.
public
property
|
Path
{
get
set
}
|
||
type
|
Path
|
||
value
|
|
The base directory. |
The
file
resp.
directory
name
search
pattern,
composed
of
'*'
and
'?'
wildcards.
public
property
|
Pattern
{
get
set
}
|
||
type
|
string
|
||
value
|
The
search
pattern
or
null
for
any
file
resp.
directory. |
Tries to find matching subdirectories.
public
method
|
Directories
()
|
||
type
|
Path[]
|
||
returns
|
|
The found subdirectories. |
Tries to find a matching subdirectory.
public
method
|
Directory
()
|
||
type
|
Path
|
||
returns
|
|
The found subdirectory. |
Remarks:
If more than one subdirectories are found, only one of them is returned.
Exceptions:
Tries to find a matching subdirectory.
public
method
|
DirectoryNull
()
|
||
type
|
Path
|
||
returns
|
The
found
subdirectory
or
null
if
no
directory
has
been
found. |
Remarks:
If more than one subdirectories are found, only one of them is returned.
Tries to find a matching file.
public
method
|
File
()
|
||
type
|
Path
|
||
returns
|
|
The found file. |
Remarks:
If more than one files are found, only one of them is returned.
Exceptions:
Tries to find a matching file.
public
method
|
FileNull
()
|
||
type
|
Path
|
||
returns
|
The
found
file,
or
null
if
no
file
has
been
found. |
Remarks:
If more than one files are found, only one of them is returned.
Exceptions:
Tries to find matching files.
public
method
|
Files
()
|
||
type
|
Path[]
|
||
returns
|
|
The found files. |