diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-12 09:08:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-12 09:08:32 +0200 |
commit | e4a63cd55c6347dd24938ec8a1ef203409be058e (patch) | |
tree | 56d41e47355067685fa9590b8f3d6fac18d05af6 /butl/path.ixx | |
parent | d2c8cfc1f02b40d3fef5414e5830dd6f1fc20fe9 (diff) |
Add path::realize(), which on POSIX calls realpath(3)
Diffstat (limited to 'butl/path.ixx')
-rw-r--r-- | butl/path.ixx | 13 |
1 files changed, 13 insertions, 0 deletions
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 <typename C, typename K> + inline basic_path<C, K>& basic_path<C, K>:: + realize () + { +#ifdef _WIN32 + complete (); + normalize (); +#else + traits::realize (this->path_); +#endif + return *this; + } + + template <typename C, typename K> inline typename basic_path<C, K>::dir_type basic_path<C, K>:: root_directory () const { |