#include "pbd/error.h"
#include "pbd/compose.h"
#include "pbd/file_utils.h"
+#include "pbd/openuri.h"
#include "ardour/directory_names.h"
#include "ardour/session_directory.h"
#include "ardour/utils.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
namespace ARDOUR {
root_cache[m_root_path] = Glib::build_filename (sources_root_path, entries.front());
}
else if (entries.size() > 1) {
+ PBD::open_folder (sources_root_path);
PBD::fatal << string_compose (_("The session's interchange dir is tainted.\nThere is more than one folder in '%1'.\nPlease remove extra subdirs to reduce possible filename ambiguties."), sources_root_path) << endmsg;
assert (0); // not reached
}
- } catch (Glib::FileError) {
+ } catch (Glib::FileError const&) {
;
}
return Glib::build_filename (m_root_path, export_dir_name);
}
+const std::string
+SessionDirectory::backup_path () const
+{
+ return Glib::build_filename (m_root_path, backup_dir_name);
+}
+
const vector<std::string>
SessionDirectory::sub_directories () const
{
tmp_paths.push_back (peak_path ());
tmp_paths.push_back (dead_path ());
tmp_paths.push_back (export_path ());
+ tmp_paths.push_back (backup_path ());
return tmp_paths;
}