aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/fs_path.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-02 22:25:57 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-02 22:25:57 +0100
commit84b5eba15ed723c382ed5560835e1eba43e1ef36 (patch)
treed4841ad0901ef6c6ab802aada18fe67554c938ed /paludis/util/fs_path.hh
parentd491d36b4c3fcb18818841a9ae08a8c99b48fc66 (diff)
downloadpaludis-84b5eba15ed723c382ed5560835e1eba43e1ef36.tar.gz
paludis-84b5eba15ed723c382ed5560835e1eba43e1ef36.tar.xz
FSPath::starts_with
Diffstat (limited to 'paludis/util/fs_path.hh')
-rw-r--r--paludis/util/fs_path.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/util/fs_path.hh b/paludis/util/fs_path.hh
index f18fa610f..bb9c65a98 100644
--- a/paludis/util/fs_path.hh
+++ b/paludis/util/fs_path.hh
@@ -85,6 +85,12 @@ namespace paludis
FSPath strip_leading(const FSPath & prefix) const;
/**
+ * Do we start with a given path (eg '/foo/bar' starts with '/foo'
+ * but not '/fo')?
+ */
+ bool starts_with(const FSPath &) const;
+
+ /**
* Try to make a directory.
*
* \return True, if we succeeded, and false if the directory