Skip to content

Commit 5bdcdfe

Browse files
author
Ritchie
committed
fix(demo): correct directory rename operation in DemonstrateVFS
Fixes #130 The RenameDirectory method signature takes (VFSDirectoryPath, string), not (VFSDirectoryPath, VFSDirectoryPath). Updated the demo to use the correct method signature. Changes: - Uncommented the directory rename step - Fixed second parameter to be a string ('heroes') instead of VFSDirectoryPath - Removed TODO comment Tests: All 379 unit tests + 71 GitHub tests pass on net10.0
1 parent ec034ca commit 5bdcdfe

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Atypical.VirtualFileSystem.DemoCli/Commands/DemonstrateVFS.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ public override int Execute(CommandContext context, CancellationToken cancellati
6262
() => vfs.MoveDirectory(new VFSDirectoryPath("/heroes"), new VFSDirectoryPath("/avengers")));
6363

6464
// Rename a directory
65-
// TODO: fix rename directory
66-
// ProcessStep(vfs, "RENAME DIRECTORY",
67-
// () => vfs.RenameDirectory(new VFSDirectoryPath("/avengers"), new VFSDirectoryPath("/heroes")));
65+
ProcessStep(vfs, "RENAME DIRECTORY",
66+
() => vfs.RenameDirectory(new VFSDirectoryPath("/avengers"), "heroes"));
6867

6968
return 0;
7069
}

0 commit comments

Comments
 (0)