public void MoveTree()
 {
     using (var testEnvironment = StreamTestEnvironment.FromExistingVhdx(true))
     {
         using (var filesystem = new ExFatPathFilesystem(testEnvironment.PartitionStream))
         {
             filesystem.Move(DiskContent.LongSparseFile1Name, DiskContent.EmptyRootFolderFileName);
             Assert.IsNull(filesystem.GetInformation(DiskContent.LongSparseFile1Name));
             Assert.IsNotNull(
                 filesystem.GetInformation(DiskContent.EmptyRootFolderFileName + "\\" +
                                           DiskContent.LongSparseFile1Name));
         }
     }
 }
Beispiel #2
0
 /// <inheritdoc />
 public override void MoveDirectory(string sourceDirectoryName, string destinationDirectoryName)
 {
     _filesystem.Move(sourceDirectoryName, GetDirectoryName(destinationDirectoryName), GetFileName(destinationDirectoryName));
 }