Practical DiskDiff: A Comprehensive Guide to Directory Comparison and File Management
1. Comparing Directories
Now that you can save and retrieve the state of a directory tree, it’s possible to compare the saved state with the current state. Here’s how you can achieve this:
- Add code to the file - loading code to load the tree into a separate structure. Scan the directories to get the current state of the tree and then compare the two trees.
// deserialize the save version, and read in the new version
this.statusBar1.Text = "Opening...";
directoryNodeBaseline = DirectoryNode.Deserialize(dialog.FileName);
directoryNode = directoryNodeBaseline;
rootDirectory = directoryNodeBaseline.Root;
DoTree();
T
超级会员免费看
订阅专栏 解锁全文
17

被折叠的 条评论
为什么被折叠?



