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) {} }
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
string old_dir = Path.GetDirecto ryName( ti.Uri. LocalPath) ;
while( old_dir != null && old_dir != String.Empty) {
Directory .Delete( old_dir) ;
old_ dir = Path.GetDirecto ryName( old_dir) ;
try {
}
} catch(Exception) {}
}