Add SessionDirectory::export_path and make sure it gets created in SessionDirectory::create
git-svn-id: svn://localhost/ardour2/trunk@1878 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -67,6 +67,12 @@ public:
|
||||
*/
|
||||
const path dead_sound_path () const;
|
||||
|
||||
/**
|
||||
* @return The absolute path to the directory that audio
|
||||
* files are created in by default when exporting.
|
||||
*/
|
||||
const path export_path () const;
|
||||
|
||||
/**
|
||||
* @return true if session directory and all the required
|
||||
* subdirectories exist.
|
||||
|
||||
@@ -111,6 +111,12 @@ SessionDirectory::dead_sound_path () const
|
||||
return path(m_root_path) /= dead_sound_dir_name;
|
||||
}
|
||||
|
||||
const path
|
||||
SessionDirectory::export_path () const
|
||||
{
|
||||
return path(m_root_path) /= export_dir_name;
|
||||
}
|
||||
|
||||
const vector<path>
|
||||
SessionDirectory::sub_directories () const
|
||||
{
|
||||
@@ -119,6 +125,7 @@ SessionDirectory::sub_directories () const
|
||||
tmp_paths.push_back ( sound_path () );
|
||||
tmp_paths.push_back ( peak_path () );
|
||||
tmp_paths.push_back ( dead_sound_path () );
|
||||
tmp_paths.push_back ( export_path () );
|
||||
|
||||
return tmp_paths;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user