Move PBD::canonical_path to pbd/file_utils.h/cc and reimplement for Windows
[ardour.git] / libs / pbd / pbd / file_utils.h
index e9baaa3e81cd592e9289496400c7f35efd352a86..d44328815903619b0a373e0adee084046ff72f7e 100644 (file)
@@ -195,6 +195,12 @@ LIBPBD_API bool touch_file (const std::string& path);
  */
 LIBPBD_API std::string get_absolute_path (const std::string &);
 
+/**
+ * The equivalent of ::realpath on POSIX systems, on Windows hard
+ * links/junctions etc are not resolved.
+ */
+LIBPBD_API std::string canonical_path (const std::string& path);
+
 /**
  * Take a path/filename and return the suffix (characters beyond the last '.'
  * @return A string containing the suffix, which will be empty