fix: make -revert scan the PathInput tree like the no-parameter run
-revert was DB-driven, searching each blog's Blogs.TTFolderPath non-recursively for *.bak. That tree differs from the no-parameter run, which recursively walks PathInput. Rewrite RevertMode to recursively walk PathInput (filesystem-only, no DB), with the optional [blogname] argument now filtering by path substring. Restore mechanics unchanged. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
@@ -185,7 +185,7 @@ namespace URLNotesGrabberCORE
|
||||
|
||||
Console.WriteLine("-output\t Export posts from TL.db back to .txt files in each blog's TTFolderPath");
|
||||
|
||||
Console.WriteLine("-revert [blogname]\t Inverse of -output: restore *.bak back to *.txt (current .txt saved as next-free .bkN)");
|
||||
Console.WriteLine("-revert [blogname]\t Recursively scan the PathInput tree and restore *.bak back to *.txt (current .txt saved as next-free .bkN); optional blogname filters by path substring");
|
||||
|
||||
Console.WriteLine("-correct [bakPath]\t Dry-run: report multi-line field updates available from a BAK directory");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user