void pruneTrailingSeparator ()
Prunes the trailing separator of a specified path. void check () const
This function sets _checked to true, stats the path, to see if it exists and to
determine what type of file it is.

path A string representation of the path.
check_exists If true is specified the constructor will check the
existence and type of the path immidiately, instead of deferring that task
until it is needed.

This function sets _checked to true, stats the path, to see if it exists and to
determine what type of file it is. All the query functions check if _checked
is true, and if it isn't they call check(). This means stat'ing is
deferred until it becomes necessary.