TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class PathFinder in Tinman.Core.IO

Helper class for finding directories and files by their names.

sealed class PathFinder  

Public / Attributes

Path

The base directory for finding files and subdirectories.

public property Path { get set }
type Path
value [not-null] The base directory.

Pattern

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.

Public / Methods

Directories

Tries to find matching subdirectories.

public method Directories ()
type Path[]
returns [not-null] The found subdirectories.

Directory

Tries to find a matching subdirectory.

public method Directory ()
type Path
returns [not-null] The found subdirectory.

Remarks:

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

Exceptions:

DirectoryNull

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.

File

Tries to find a matching file.

public method File ()
type Path
returns [not-null] The found file.

Remarks:

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

Exceptions:

FileNull

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:

Files

Tries to find matching files.

public method Files ()
type Path[]
returns [not-null] The found files.