예제 #1
0
 public void DeleteTree()
 {
     using (var testEnvironment = StreamTestEnvironment.FromExistingVhdx(true))
     {
         using (var filesystem = new ExFatPathFilesystem(testEnvironment.PartitionStream))
         {
             filesystem.DeleteTree(DiskContent.LongFolderFileName);
             Assert.IsFalse(filesystem.EnumerateEntries("")
                            .Any(e => e.Path == $@"\{DiskContent.LongFolderFileName}"));
         }
     }
 }
예제 #2
0
 /// <inheritdoc />
 public override void DeleteDirectory(string path)
 {
     _filesystem.DeleteTree(path);
 }