コード例 #1
0
        public List <FileInformationModel> GetMediaFiles(string directory)
        {
            var files  = readService.GetFolderInformation(directory);
            var result = new List <FileInformationModel>();

            foreach (var file in files)
            {
                file.MediaInformation = new MediaFileModel();
                if (IsVideoFile(file))
                {
                    result.Add(file);
                }
            }

            return(result);
        }