BlogEngine.Core.Providers.DbFileSystemProvider.GetFiles C# (CSharp) Method

GetFiles() public method

gets all the files in a directory, only searches one level
public GetFiles ( FileSystem BaseDirectory ) : IEnumerable
BaseDirectory FileSystem the base directory
return IEnumerable
        public override IEnumerable<FileSystem.File> GetFiles(FileSystem.Directory BaseDirectory)
        {
            var db = new FileSystem.FileStoreDb(this.connectionString);
            var fileDir = db.FileStoreDirectories.FirstOrDefault(x=>x.Id == BaseDirectory.Id);
            if (fileDir == null)
                return new List<FileSystem.File>();
            var arr = fileDir.FileStoreFiles.Select(x => x.CopyToFile()).ToList();
            db.Dispose();
            return arr;
        }