From 5bdcdfe2702bca4712f2756aa7312dcba3ec8c3a Mon Sep 17 00:00:00 2001 From: Ritchie Date: Sat, 21 Feb 2026 08:03:06 +0000 Subject: [PATCH] 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 --- .../Commands/DemonstrateVFS.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Atypical.VirtualFileSystem.DemoCli/Commands/DemonstrateVFS.cs b/src/Atypical.VirtualFileSystem.DemoCli/Commands/DemonstrateVFS.cs index e167e72..1b34469 100644 --- a/src/Atypical.VirtualFileSystem.DemoCli/Commands/DemonstrateVFS.cs +++ b/src/Atypical.VirtualFileSystem.DemoCli/Commands/DemonstrateVFS.cs @@ -62,9 +62,8 @@ public override int Execute(CommandContext context, CancellationToken cancellati () => vfs.MoveDirectory(new VFSDirectoryPath("/heroes"), new VFSDirectoryPath("/avengers"))); // Rename a directory - // TODO: fix rename directory - // ProcessStep(vfs, "RENAME DIRECTORY", - // () => vfs.RenameDirectory(new VFSDirectoryPath("/avengers"), new VFSDirectoryPath("/heroes"))); + ProcessStep(vfs, "RENAME DIRECTORY", + () => vfs.RenameDirectory(new VFSDirectoryPath("/avengers"), "heroes")); return 0; }