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.

Tries to find matching subdirectories.

IOException

If an I/O error has occurred.

Directory


public method Directory → ()

returns → Path

The found subdirectory.

Tries to find a matching subdirectory.

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

IOException

If no subdirectories have been found.

DirectoryNull


public method DirectoryNull → ()

returns → Path

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

Tries to find a matching subdirectory.

If more than one 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.

Tries to find a matching file.

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

IOException

If no file has been found.

FileNull


public method FileNull → ()

returns → Path

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

Tries to find a matching file.

If more than one 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.

Tries to find matching files.

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.