Example #1
0
        public virtual List <FileInformation> Read(string path)
        {
            var listOfFiles = new List <FileInformation>();
            var files       = _directoryImpl.ReadDirectory(path);

            foreach (var file in files)
            {
                var fileInfomation = _fileInfoFactory.Create(file);
                listOfFiles.Add(fileInfomation);
            }
            return(listOfFiles);
        }