例如,我在E:\
如何检查此文件夹是否包含名为Face
的文件夹?
答案 0 :(得分:0)
string[] directoriesToSearch = { "C:\\tmp\\test2", "C:\\tmp\\test", "C:\\tmp\\test3" };
var directoriesContainingFace = directories.Where(d => Directory.EnumerateDirectories(d, "Face").Any()).ToList();