public void ReadDirectory() { foreach (string path in EnumerableDirectory.FindFiles(@"G:\Archive\TestMp3s\*.*")) // foreach (string path in EnumerableDirectory.FindFiles(@"Z:\Music\Subscription - [NoDRM]\Pink Floyd\A Momentary Lapse Of Reason\")) { Id3TagEditor editor = null; try { editor = new Id3TagEditor(path, FileAccess.ReadWrite); Id3V11Tag tag = editor.Read(); if (tag == Id3V11Tag.Empty) { Debug.WriteLine("[No Tag] " + path); continue; } Debug.WriteLine(tag.ToString()); // Debug.WriteLineIf(tag.Artist == "UB40", tag.ToString()); } catch (IOException) { } finally { if (editor != null) { editor.Dispose(); } } } }
public void TEST() { foreach (string s in EnumerableDirectory.FindFiles(@"G:\Archive\TestMp3s\*.mp3")) { Debug.WriteLine(s); } }