From 3e6110dec6f4cb004b8594b9b798a9db5b08fe7a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 7 Dec 2016 01:22:53 +0300 Subject: Add path::current(), path::parent() --- butl/path.ixx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'butl/path.ixx') diff --git a/butl/path.ixx b/butl/path.ixx index c87a376..b1212f4 100644 --- a/butl/path.ixx +++ b/butl/path.ixx @@ -88,6 +88,20 @@ namespace butl template inline bool basic_path:: + current () const + { + return traits::current (this->path_); + } + + template + inline bool basic_path:: + parent () const + { + return traits::parent (this->path_); + } + + template + inline bool basic_path:: root () const { const string_type& s (this->path_); @@ -232,7 +246,7 @@ namespace butl complete () { if (relative ()) - *this = current () / *this; + *this = current_directory () / *this; return *this; } -- cgit v1.1