diff options
Diffstat (limited to 'bdep/utility.cxx')
-rw-r--r-- | bdep/utility.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bdep/utility.cxx b/bdep/utility.cxx index 4407eed..9c8057e 100644 --- a/bdep/utility.cxx +++ b/bdep/utility.cxx @@ -82,6 +82,19 @@ namespace bdep bool stderr_term; + dir_path + current_directory () + { + try + { + return dir_path::current_directory (); + } + catch (const system_error& e) + { + fail << "unable to obtain current directory: " << e << endf; + } + } + bool exists (const path& f, bool ignore_error) { |