summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/session_directory.h
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2007-05-19 11:31:27 +0000
committerTim Mayberry <mojofunk@gmail.com>2007-05-19 11:31:27 +0000
commitb99c6c6e1d5a2f8f653f64e1ee3788f77a11a120 (patch)
treec1558d417203acc553cdb48a0b8f45e0e3f7d1ea /libs/ardour/ardour/session_directory.h
parentfd6408e6baf9094d73a4b6c1b5b24455b11124b2 (diff)
When loading sessions, create any missing session directories rather than throwing an exception.
Change the meaning of the return value of SessionDirectory::create and add documentation to explain usage. Add PBD::sys::filesystem_error to indicate a filesystem error and throw it where necessary. Change the semantics of PBD::sys::create_directory/ies functions to match boost::filesystem git-svn-id: svn://localhost/ardour2/trunk@1884 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/session_directory.h')
-rw-r--r--libs/ardour/ardour/session_directory.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/libs/ardour/ardour/session_directory.h b/libs/ardour/ardour/session_directory.h
index 131812c130..d23c135e0b 100644
--- a/libs/ardour/ardour/session_directory.h
+++ b/libs/ardour/ardour/session_directory.h
@@ -80,8 +80,15 @@ public:
bool is_valid () const;
/**
- * @return true If a new session directory and all the
- * subdirectories were created, otherwise false.
+ * Create the session directory and all the subdirectories.
+ *
+ * @throw PBD::sys::filesystem_error if the directories were
+ * not able to be created.
+ *
+ * @return true If a new session directory was created, otherwise
+ * (if it already existed) false.
+ *
+ * @post is_valid ()
*/
bool create ();