}
+SessionDirectory&
+SessionDirectory::operator= (const std::string& newpath)
+{
+ m_root_path = newpath;
+ return *this;
+}
+
bool
SessionDirectory::create ()
{
const path
SessionDirectory::sources_root () const
{
- const string legalized_root(legalize_for_path(m_root_path.leaf()));
+ path p = m_root_path;
+
+ if (p.leaf() == ".") {
+ p = PBD::sys::get_absolute_path (m_root_path);
+ }
+
+ const string legalized_root (legalize_for_path (p.leaf ()));
return m_root_path / interchange_dir_name / legalized_root;
}
return sources_root() / sound_dir_name;
}
-const path
-SessionDirectory::sound_stub_path () const
-{
- if(is_directory (old_sound_path ())) return old_sound_path();
-
- // the new style sound directory
- return sources_root() / sound_dir_name / stub_dir_name;
-}
-
const path
SessionDirectory::midi_path () const
{
return sources_root() / midi_dir_name;
}
-const path
-SessionDirectory::midi_stub_path () const
-{
- return sources_root() / midi_dir_name / stub_dir_name;
-}
-
const path
SessionDirectory::midi_patch_path () const
{