X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fsession_state.cc;h=e58f2324e34f4a0eb96467916e2b53f318322f42;hb=355a988c3f09ccde1c84480c21ef20b72fb032ca;hp=ccbb62b0dcf25973a6cbfa025d1fcc6678ed786f;hpb=e88f2f2e2f5654bb1d44660d20ddf4b5205b5e3c;p=ardour.git diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index ccbb62b0dc..e58f2324e3 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -97,6 +97,7 @@ #include #include #include +#include #include #include "i18n.h" @@ -498,52 +499,6 @@ Session::create_session_file_from_template (const string& template_path) return true; } -bool -Session::create_session_directory () -{ - string dir; - - if (g_mkdir_with_parents (_path.c_str(), 0755) < 0) { - error << string_compose(_("Session: cannot create session dir \"%1\" (%2)"), _path, strerror (errno)) << endmsg; - return false; - } - - dir = peak_dir (); - - if (g_mkdir_with_parents (dir.c_str(), 0755) < 0) { - error << string_compose(_("Session: cannot create session peakfile dir \"%1\" (%2)"), dir, strerror (errno)) << endmsg; - return false; - } - - /* if this is is an existing session with an old "sounds" directory, just use it. see Session::sound_dir() for more details */ - - if (!Glib::file_test (old_sound_dir(), Glib::FILE_TEST_EXISTS|Glib::FILE_TEST_IS_DIR)) { - - dir = sound_dir (); - - if (g_mkdir_with_parents (dir.c_str(), 0755) < 0) { - error << string_compose(_("Session: cannot create session sounds dir \"%1\" (%2)"), dir, strerror (errno)) << endmsg; - return false; - } - } - - dir = dead_sound_dir (); - - if (g_mkdir_with_parents (dir.c_str(), 0755) < 0) { - error << string_compose(_("Session: cannot create session dead sounds dir \"%1\" (%2)"), dir, strerror (errno)) << endmsg; - return false; - } - - dir = export_dir (); - - if (g_mkdir_with_parents (dir.c_str(), 0755) < 0) { - error << string_compose(_("Session: cannot create session export dir \"%1\" (%2)"), dir, strerror (errno)) << endmsg; - return false; - } - - return true; -} - int Session::load_diskstreams (const XMLNode& node) {