diff options
Diffstat (limited to 'src/utility/path.cpp')
-rw-r--r-- | src/utility/path.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utility/path.cpp b/src/utility/path.cpp index 21c02b7a..abbba853 100644 --- a/src/utility/path.cpp +++ b/src/utility/path.cpp @@ -149,6 +149,12 @@ const bool path::isEmpty() const } +const bool path::isRoot() const +{ + return (m_list.empty()); +} + + const path::component path::getLastComponent() const { return (m_list[m_list.size() - 1]); |