aboutsummaryrefslogtreecommitdiffstats
path: root/src/utility/path.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2007-03-22 16:03:41 +0000
committerVincent Richard <[email protected]>2007-03-22 16:03:41 +0000
commit5a2c2e41283ed609d2f30d83d4ce4ade1b205579 (patch)
treefe4663211bca2418a69ca7517fa5b778824f8b3b /src/utility/path.cpp
parentFixed stack overflow error with VC++. (diff)
downloadvmime-5a2c2e41283ed609d2f30d83d4ce4ade1b205579.tar.gz
vmime-5a2c2e41283ed609d2f30d83d4ce4ade1b205579.zip
Added support for Courier maildir format.
Diffstat (limited to 'src/utility/path.cpp')
-rw-r--r--src/utility/path.cpp6
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]);