Advanced Duplicate File Finder for Python. Nothing is impossible to solve.
Project description
Installation
Type in your command shell with *administrator/root* privileges:
pip install deplicate[full]
In Unix-based systems, this is generally achieved by superseding the command sudo.
sudo pip install deplicate[full]
The option full ensures that all the optional packages will downloaded and installed as well as the mandatory dependencies.
You can install just the main package typing:
pip install deplicate
If the above commands fail, consider installing it with the option –user:
pip install --user deplicate
Usage
Use deplicate to find out all the duplicated files in one or more directories, you can also scan for duplicates a bunch of files directly.
To find the duplicates import in your python script the new available module duplicate and call its method find:
import duplicate entries = ['/path/to/directory1', '/path/to/directory2', '/path/to/file1'] duplicate.find(entries)
Examples
TODO
API Reference
- duplicate.find(
paths, minsize=None, include=None, exclude=None, comparename=False, comparemtime=False,compareperms=False, recursive=False, followlinks=False, scanlinks=False, scanempties=False, scansystems=True, scanarchived=True, scanhidden=True, signsize=None)
Return: List of lists of duplicate files.
Parameters:
paths – Iterable of directory or file path.
minsize – (optional) Minimum size of files to include in scanning (default to DEFAULT_MINSIZE).
include – (optional) Wildcard pattern of files to include in scanning.
exclude – (optional) Wildcard pattern of files to exclude from scanning.
comparename – (optional) Check file name.
comparemtime – (optional) Check file modification time.
compareperms – (optional) Check file mode (permissions).
recursive – (optional) Scan directory recursively.
followlinks – (optional) Follow symbolic links pointing to directory.
scanlinks – (optional) Scan symbolic links pointing to file.
scanempties – (optional) Scan empty files.
scansystems – (optional) Scan OS files.
scanarchived – (optional) Scan archived files.
scanhidden – (optional) Scan hidden files.
signsize – (optional) Size of bytes to read from file as signature (default to DEFAULT_SIGNSIZE).
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
Hashes for deplicate-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f25b288dc10ab859c8f80b7f978be22334401414b78b1e8b53b151fa45f15945 |
|
MD5 | 6f87c780ca9c90e117815b5b647d3982 |
|
BLAKE2b-256 | 0472e5dd12c10859dd4b301dd87a66b715e7dda2e3126c634b88963581626d84 |