using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
class FileUtils
{
publicstatic List<string> GetMovieListFromFileSystem(string path)
{
var movieFiles = (from file in new DirectoryInfo(path).GetFiles()
where file.Extension == ".avi"
select file.FullName).ToList<string>();
return movieFiles;
}
}