From 6cfb164d7cf4a25fb077c36ab6ef1438cfa9e2ae Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 12 Apr 2019 18:32:34 +0200 Subject: [PATCH] Backport backup folder creation Other parts for auto-backup is already in ardour-git. --- libs/ardour/session_state.cc | 9 +++++++++ 1 file changed, 9 insertions(+) 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) {