[ubuntu-mono] [Bug 158419] Re: Banshee crashes when file/directory is not present
Pepijn van de Geer
pvandegeer at gmail.com
Wed Dec 5 21:09:05 GMT 2007
This seems to be fixed as the current code of the stable branch looks
like this:
private void DeleteSong(TrackInfo ti)
{
File.Delete(ti.Uri.LocalPath);
// trim empty parent directories
try {
string old_dir = Path.GetDirectoryName(ti.Uri.LocalPath);
while(old_dir != null && old_dir != String.Empty) {
Directory.Delete(old_dir);
old_dir = Path.GetDirectoryName(old_dir);
}
} catch(Exception) {}
}
--
Banshee crashes when file/directory is not present
https://bugs.launchpad.net/bugs/158419
You received this bug notification because you are a member of MOTU Mono
Team, which is a bug contact for banshee in ubuntu.
More information about the Ubuntu-mono
mailing list