diff options
| author | Vincent Richard <[email protected]> | 2007-03-22 16:03:41 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2007-03-22 16:03:41 +0000 |
| commit | 5a2c2e41283ed609d2f30d83d4ce4ade1b205579 (patch) | |
| tree | fe4663211bca2418a69ca7517fa5b778824f8b3b /src/utility/path.cpp | |
| parent | Fixed stack overflow error with VC++. (diff) | |
| download | vmime-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.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]); |
