Use path::leaf instead of sys::basename in SessionDirectory::sound/midi_path

sys::basename now matches boost::filesystem behaviour so if a session name
had a dot in it the session name used in the interchange directory would be
truncated.


git-svn-id: svn://localhost/ardour2/trunk@2408 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2007-09-04 09:01:22 +00:00
parent bb5314c364
commit d8d24a7521

View file

@ -99,7 +99,7 @@ SessionDirectory::sound_path () const
path l_sound_path(m_root_path);
l_sound_path /= interchange_dir_name;
l_sound_path /= basename(m_root_path);
l_sound_path /= m_root_path.leaf();
l_sound_path /= sound_dir_name;
return l_sound_path;
@ -112,7 +112,7 @@ SessionDirectory::midi_path () const
path l_midi_path(m_root_path);
l_midi_path /= interchange_dir_name;
l_midi_path /= basename(m_root_path);
l_midi_path /= m_root_path.leaf();
l_midi_path /= midi_dir_name;
return l_midi_path;