Skip to main content

KernelDB.deduplicate_with_symlinks()

Replace duplicate files with symlinks to the canonical copy.

Usage

Source

KernelDB.deduplicate_with_symlinks(dry_run=True)

The plan is the one deduplicate_plan returns. With a console, each replacement and the space saved are printed.

Parameters

dry_run: bool = True
With True (the default) only print what would happen. Regular files are replaced only with dry_run=False.

Returns

list[dict]
The plan, as deduplicate_plan returns it.