From e4a63cd55c6347dd24938ec8a1ef203409be058e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 12 Feb 2016 09:08:32 +0200 Subject: Add path::realize(), which on POSIX calls realpath(3) --- butl/path.ixx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'butl/path.ixx') diff --git a/butl/path.ixx b/butl/path.ixx index c072075..f933bd3 100644 --- a/butl/path.ixx +++ b/butl/path.ixx @@ -177,6 +177,19 @@ namespace butl } template + inline basic_path& basic_path:: + realize () + { +#ifdef _WIN32 + complete (); + normalize (); +#else + traits::realize (this->path_); +#endif + return *this; + } + + template inline typename basic_path::dir_type basic_path:: root_directory () const { -- cgit v1.1