private void CheckDirectoryFilter(Directory dir)
{
string name = "file";
try
{
dir.CreateOutput(name, NewIOContext(Random())).Dispose();
Assert.IsTrue(SlowFileExists(dir, name));
Assert.IsTrue(Arrays.AsList(dir.ListAll()).Contains(name));
}
finally
{
dir.Dispose();
}
}