有谁知道“等”在目录枚举方面有什么特别之处,还有其他人喜欢它吗?如何绕过它不可见?
public class Foo
{
[Test]
public void Etc()
{
var etc = new DirectoryInfo(@"C:\Windows\System32\drivers\etc");
Assert.True(etc.Exists);
/* Expected: not <empty> But was: <empty> */
Assert.IsNotEmpty(etc.Parent.GetDirectories(etc.Name));
}
}