13
0

Backport backup folder creation

Other parts for auto-backup is already in ardour-git.
This commit is contained in:
Robin Gareus 2019-04-12 18:32:34 +02:00
parent 6631d97ac0
commit 6cfb164d7c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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) {