Skip to content

DuplicateChecker

Kamil "Enderek0" K edited this page Apr 20, 2024 · 1 revision

DuplicateChecker

This is a simple script that checks for duplicate files based on relative paths between two folders, like this: image

Launch arguments

-c or --config

  • Specify a path to the configuration file, default is ./settings.json

Settings.json

{
    "Moddir": "MyMod",
    "PrimaryFolder": "game/mymod",
    "SecondaryFolder": "game/portal2",
    "CheckDirectories": [
        "materials",
        "models",
        "sound"
    ]
}

Moddir

The same as other programs in this repo, it determines a folder name which is the main working directory

PrimaryFolder

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.

SecondaryFolder

Secondary folder for comparison.

CheckDirectories

These directories will get appended for both PrimaryFolder and SecondaryFolder and then the files in those will get compared (recursively).

Clone this wiki locally