diff options
author | Robin Gareus <robin@gareus.org> | 2019-04-12 18:32:34 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-04-12 18:32:34 +0200 |
commit | 6cfb164d7cf4a25fb077c36ab6ef1438cfa9e2ae (patch) | |
tree | 365c462e9cf8db35f9a1f511e930138b302b0a1c /libs/ardour/session_state.cc | |
parent | 6631d97ac080f797556c8e12f145c26c73302d04 (diff) |
Backport backup folder creation
Other parts for auto-backup is already in ardour-git.
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 9ed5a27269..e02fefc3b6 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -543,6 +543,15 @@ Session::ensure_subdirs () return -1; } + if(Profile->get_mixbus()) { + dir = session_directory().backup_path(); + + if (g_mkdir_with_parents (dir.c_str(), 0755) < 0) { + error << string_compose(_("Session: cannot create session backup folder \"%1\" (%2)"), dir, strerror (errno)) << endmsg; + return -1; + } + } + dir = analysis_dir (); if (g_mkdir_with_parents (dir.c_str(), 0755) < 0) { |