Enhancement

- Added Path::is_absolute, and corresponding unit tests.
- Replaced expandPath and isAbsolutePath call in Config.cpp.
This commit is contained in:
Paul Beckingham 2010-01-12 01:30:59 -05:00
parent c02cfd594c
commit e1f3f2355a
4 changed files with 20 additions and 3 deletions

View file

@ -121,6 +121,15 @@ bool Path::is_directory () const
return false;
}
////////////////////////////////////////////////////////////////////////////////
bool Path::is_absolute () const
{
if (data.length () && data.substr (0, 1) == "/")
return true;
return false;
}
////////////////////////////////////////////////////////////////////////////////
bool Path::readable () const
{