PathFinder

Description

sealed class Tinman.Core.IO.PathFinder

Helper class for finding directories and files by their names.

Public / Methods

Directories


public method Directories → ()

returns → Path [ ]

The found subdirectories.

Finds the matching subdirectories in Path.

IOException

If an I/O error has occurred.

Directory


public method Directory → ()

returns → Path

The found subdirectory.

Finds the matching subdirectory in Path.

If one or more subdirectories are found, only one of them is returned.

IOException

If no subdirectories have been found.

Directory​Null


public method DirectoryNull → ()

returns → Path

The found subdirectory or null if no directory has been found.

Finds the matching subdirectory in Path.

If one or more than subdirectories are found, only one of them is returned.

IOException

If an I/O error has occurred.

File


public method File → ()

returns → Path

The found file.

Finds the matching file in Path.

If more than one files are found, only one of them is returned.

IOException

If no file has been found.

File​Null


public method FileNull → ()

returns → Path

The found file, or null if no file has been found.

Finds the matching file in Path.

If one or more files are found, only one of them is returned.

IOException

If no file has been found.

Files


public method Files → ()

returns → Path [ ]

The found files.

Finds the matching files in Path.

IOException

If an I/O error has occurred.

Public / Attributes

Path


public attribute Path → (get,set)

value : Path

[not-null]
The base directory.

The base directory for finding files and subdirectories.

Pattern


public attribute Pattern → (get,set)

value : string

The search pattern or null for any file resp. directory.

The file resp. directory name search pattern, composed of '*' and '?' wildcards.