internal static List <MusicFile> GetMusicFiles(string _playlistFolderPath) { string[] fileEntries = Directory.GetFiles(_playlistFolderPath, "*.mp3"); List <MusicFile> retVal = new List <MusicFile>(); foreach (string x in fileEntries) { retVal.Add(new MusicFile(x, DiskIO.GetFileTitle(x), GetMediaDuration(x))); } return(retVal); }