diff options
Diffstat (limited to 'libbutl/path-map.mxx')
-rw-r--r-- | libbutl/path-map.mxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libbutl/path-map.mxx b/libbutl/path-map.mxx index 2697a48..95fd54b 100644 --- a/libbutl/path-map.mxx +++ b/libbutl/path-map.mxx @@ -79,6 +79,16 @@ LIBBUTL_MODEXPORT namespace butl root (ks) ? string_type () : ks); } + bool + prefix (key_type& k) const + { + if (k.empty ()) + return false; + + k.make_directory (); + return true; + } + protected: bool prefix (const string_type& p, const string_type& k) const |