Ejemplo n.º 1
0
        public IEnumerable <Mp3FileInfoModel> GetFilesInCurrentFolder()
        {
            _logController.Start(SongActionEnum.FilesInFolder);

            var files = Directory.GetFiles(Directory.GetCurrentDirectory(), $"*.{Settings.Default.FileFormat}")
                        .Select(x => new Mp3FileInfoModel(x))
                        .ToList();

            _logController.FoundFiles(files.Count);

            _logController.End(SongActionEnum.FilesInFolder);

            return(files);
        }