Added RemoveLeaf() leaf method. Very handy for recursive directory

iteration code using a single KPath object.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21606 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-07-15 00:34:17 +00:00
parent dad631290c
commit 3532662e0c
2 changed files with 20 additions and 0 deletions
+2
View File
@@ -35,6 +35,8 @@ class KPath {
const char *Leaf() const;
status_t ReplaceLeaf(const char *newLeaf);
bool RemoveLeaf();
// returns false, if nothing could be removed anymore
status_t Append(const char *toAppend, bool isComponent = true);