Tool for finding and hardlinking identical files.
Project description
mklinks: tool for finding and hardlinking identical files
Latest release 20221228:
- Modernise command, pass a RunState to the merge methods.
- merge: check runstate more frequently, tweak progress bar.
- assimilate: plumb runstate.
Mklinks walks supplied paths looking for files with the same content, based on a cryptographic checksum of their content. It hardlinks all such files found, keeping the newest version.
Unlike some rather naive tools out there, mklinks only compares files with other files of the same size, and is hardlink aware - a partially hardlinked tree is processed efficiently and correctly.
Class FileInfo
Information about a particular inode.
Method FileInfo.__init__(self, dev, ino, size, mtime, paths=()):
pylint: disable=too-many-arguments
Class Linker
The class which links files with identical content.
Function main(argv=None)
Main command line programme.
Class MKLinksCmd(cs.cmdutils.BaseCommand)
Main programme command line class.
Command line usage:
Usage: mklinkscmd paths...
Hard link files with identical contents.
-n No action. Report proposed actions.
Release Log
Release 20221228:
- Modernise command, pass a RunState to the merge methods.
- merge: check runstate more frequently, tweak progress bar.
- assimilate: plumb runstate.
Release 20210404:
- FileInfo.checksum: bump read size to 1MiB.
- Requirements bump to match cs.cmdutils change.
Release 20210401: Major bugfix: subdirectory file paths were computed incorrectly.
Release 20210306: Use cs.cmdutils.BaseCommand for main programme, add better progress reporting.
Release 20171228: Initial PyPI release of cs.app.mklinks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cs.app.mklinks-20221228.tar.gz.
File metadata
- Download URL: cs.app.mklinks-20221228.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b57b44aa27080f9df1857897be143bbccd3626febd932ab5bf7c1ffb98c558a4
|
|
| MD5 |
6fa89a2a108f72a16ef1ca7be0a85bf0
|
|
| BLAKE2b-256 |
e702cd1bf5cf6f5161148a8f1cf3abb2ec14e1057c2f8b27339e7307fbade6d5
|
File details
Details for the file cs.app.mklinks-20221228-py3-none-any.whl.
File metadata
- Download URL: cs.app.mklinks-20221228-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c62117149cf475e6aaf9a3b57c4811ef9deff11948a8ee3e1c2b07d77a5f45d7
|
|
| MD5 |
ea54809c608c1c6bfc7b82693ea0bc25
|
|
| BLAKE2b-256 |
885cb473357b5134e497a417ebbef44345c2bff5c1358891272fe54f89240395
|