public virtual void TestCopySubdir()
{
DirectoryInfo path = CreateTempDir("testsubdir");
try
{
//path.mkdirs();
System.IO.Directory.CreateDirectory(path.FullName);
//(new File(path, "subdir")).mkdirs();
System.IO.Directory.CreateDirectory(new DirectoryInfo(Path.Combine(path.FullName, "subdir")).FullName);
Directory fsDir = new SimpleFSDirectory(path, null);
Assert.AreEqual(0, (new RAMDirectory(fsDir, NewIOContext(Random()))).ListAll().Length);
}
finally
{
System.IO.Directory.Delete(path.FullName, true);
}
}