aboutsummaryrefslogtreecommitdiff
path: root/libbutl/filesystem.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-06-10 21:06:51 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-06-12 16:42:35 +0300
commit1d0b79df453e1e5c5c49a35549df9f350b3660ff (patch)
tree80811b95b4351bd2fd5b1b759850e786c9df1a75 /libbutl/filesystem.hxx
parent334b37f48672b8d85700923bae493acb7db3060b (diff)
Add tests and fixes for path_search(pattern,entry)
Diffstat (limited to 'libbutl/filesystem.hxx')
-rw-r--r--libbutl/filesystem.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbutl/filesystem.hxx b/libbutl/filesystem.hxx
index b4f8d96..35bab9f 100644
--- a/libbutl/filesystem.hxx
+++ b/libbutl/filesystem.hxx
@@ -601,6 +601,11 @@ namespace butl
// through contains only the specified entry. The start directory is used if
// the first pattern component is a self-matching wildcard (see above).
//
+ // If pattern or entry is relative, then it is assumed to be relative to the
+ // start directory (which, if relative itself, is assumed to be relative to
+ // the current directory). Note that the implementation can optimize the
+ // case when pattern and entry are both non-empty and relative.
+ //
LIBBUTL_EXPORT void
path_search (const path& pattern,
const path& entry,