List ls = new List();
string path = @“E:”;
DirectoryInfo dir = new DirectoryInfo(path);if (dir.Exists){DirectoryInfo dirD = dir as DirectoryInfo;FileSystemInfo[] files = dirD.GetFileSystemInfos();foreach (var item in files){ls.Add(item.Name);}}else{ls.Add(\"无\");}