X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Ffilesystem.cc;h=661e21cbd5074bf971fb5e5b12c9225ede2912c0;hb=31e203ac07cbda216fc842c68b9192d082ba8d65;hp=886cd24d99a05876a72bfd13c979cf8a5230193c;hpb=93a24066dee65230769be7f6ac55ecf87d490acf;p=ardour.git diff --git a/libs/pbd/filesystem.cc b/libs/pbd/filesystem.cc index 886cd24d99..661e21cbd5 100644 --- a/libs/pbd/filesystem.cc +++ b/libs/pbd/filesystem.cc @@ -21,6 +21,8 @@ #include #include +#include + #include #include @@ -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 f = Gio::File::create_for_path (p.to_string ()); + return f->get_path (); +} + } // namespace sys } // namespace PBD