public static List<String> GetAllFiles(String directory)
{
return Directory.GetFiles(directory, "*", SearchOption.AllDirectories).ToList();
}
Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories)
string[] entries = Directory.GetFileSystemEntries(path, "*", SearchOption.AllDirectories);