Enhancement
- Added Path::is_absolute, and corresponding unit tests. - Replaced expandPath and isAbsolutePath call in Config.cpp.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user