tweak transport bar spacing
[ardour.git] / libs / pbd / filesystem.cc
index 886cd24d99a05876a72bfd13c979cf8a5230193c..661e21cbd5074bf971fb5e5b12c9225ede2912c0 100644 (file)
@@ -21,6 +21,8 @@
 #include <glib.h>
 #include <glib/gstdio.h>
 
+#include <giomm/file.h>
+
 #include <cerrno>
 #include <fstream>
 
@@ -222,6 +224,14 @@ extension (const path & p)
 
 }
 
+/** Take a (possibly) relative path and make it absolute */
+path
+get_absolute_path (const path & p)
+{
+       Glib::RefPtr<Gio::File> f = Gio::File::create_for_path (p.to_string ());
+       return f->get_path ();
+}
+
 } // namespace sys
 
 } // namespace PBD