diff options
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r-- | src/libutil/util.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 9caab4aa1067..6c83987c5d46 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -45,6 +45,10 @@ Path dirOf(const Path & path); following the final `/'. */ string baseNameOf(const Path & path); +/* Check whether a given path is a descendant of the given + directory. */ +bool isInDir(const Path & path, const Path & dir); + /* Get status of `path'. */ struct stat lstat(const Path & path); |