-
Notifications
You must be signed in to change notification settings - Fork 0
DuplicateChecker
Kamil "Enderek0" K edited this page Apr 20, 2024
·
1 revision
This is a simple script that checks for duplicate files based on relative paths between two folders, like this:

- Specify a path to the configuration file, default is
./settings.json
{
"Moddir": "MyMod",
"PrimaryFolder": "game/mymod",
"SecondaryFolder": "game/portal2",
"CheckDirectories": [
"materials",
"models",
"sound"
]
}The same as other programs in this repo, it determines a folder name which is the main working directory
This is the primary folder for comparison, it may seem like it doesn't matter which one is the primary or secondary, but it actually does. The program loops through every file in the primary folder only, not the secondary. Generally speaking the primary folder should be the one with the lesser amount of files.
Secondary folder for comparison.
These directories will get appended for both PrimaryFolder and SecondaryFolder and then the files in those will get compared (recursively).