Skip to main content

File de-duplication utility

Project description

xclean

File de-duplication and archiving utility.

Scan files in main to record main files to compare against.

Scan files in target to find files that are duplicates of those in main.

By default it just lists the duplicates.

Removing duplicates

Specify --remove-dups to actually remove the duplicate files.

Archiving duplicates

Specify --archive-dup-path to archive the duplicate files to another location.

Archiving new files

Specify --archive-new-path to archive any new files to another location.

Trashing duplicates

Specify --trash-dups to move the duplicate files to the trash.

Reset the database

Reset the database content of main files by specifying --clean-db.

Compare XMP files as well

To compare the file and associated XMP file specify the --check-xmp option as well.

Compare AAE files as well

To compare the file and associated AAE file specify the --check-aae option as well.

Scanning specific file types

To scan files of specific types use the --include-extensions and --exclude-extensions options.

Prompt before changing

To answer a prompt before changing a file specify --prompt

Installation

Using pypi

pip install xclean

Using pipx

pipx install xclean

Using github

pip install https://github.com/bbc6502/xclean/archive/refs/heads/main.zip

Usage

usage: xclean [-h] [-m MAIN] [-t TARGET] [--store-path STORE_PATH] [--archive-dup-path ARCHIVE_DUP_PATH] [--archive-new-path ARCHIVE_NEW_PATH]
   	       [--import-new-path IMPORT_NEW_PATH] [-i [INCLUDE_EXTENSIONS ...]] [-x [EXCLUDE_EXTENSIONS ...]] [--exclude-dirs [EXCLUDE_DIRS ...]] [--unprotect]
   	       [--remove-dups] [--trash-dups] [--clean-db] [--check-xmp] [--check-aae] [-p] [--report-new] [--report-dup] [--report-summary] [--copy-not-move]
   	       [--ignore-existing] [--min-size MIN_SIZE]

File de-duplication and archiving utility v0.1.0

options:
-h, --help            show this help message and exit
-m MAIN, --main MAIN  Directory where main files reside
-t TARGET, --target TARGET
                    	Directory where duplicate files may reside
--store-path STORE_PATH
                    	Directory where the database is stored
--archive-dup-path ARCHIVE_DUP_PATH
                    	Archive duplicates to directory
--archive-new-path ARCHIVE_NEW_PATH
                    	Archive new files to directory
--import-new-path IMPORT_NEW_PATH
                    	Directory where to import new main files into
-i [INCLUDE_EXTENSIONS ...], --include-extensions [INCLUDE_EXTENSIONS ...]
                    	Include Extensions
-x [EXCLUDE_EXTENSIONS ...], --exclude-extensions [EXCLUDE_EXTENSIONS ...]
                    	Exclude Extensions
--exclude-dirs [EXCLUDE_DIRS ...]
                    	Exclude directories
--unprotect           Unprotect main files
--remove-dups         Remove duplicate files
--trash-dups          Trash duplicate files
--clean-db            Clean database
--check-xmp           Include xmp files when checking for duplicates
--check-aae           Include aae files when checking for duplicates
-p, --prompt          Prompt before making changes
--report-new          Report new files
--report-dup          Report duplicate files
--report-summary      Report summary of changes
--copy-not-move       Copy archive and import instead of moving
--ignore-existing     Ignore existing archive files
--min-size MIN_SIZE   Minimum size to clean (default 100)

Import will archive files and import them into the database. Archive and Import always copy the associated .XMP and .AAE files if they exist.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xclean-0.1.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xclean-0.1.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file xclean-0.1.0.tar.gz.

File metadata

  • Download URL: xclean-0.1.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for xclean-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bfd776d2f44b539943eefe81aea168dd294fb9156c4870685ef8dd0876a72d0b
MD5 ff8bf00296255a28f4674f2f2112af6d
BLAKE2b-256 70fe4030820c64962525c76950a771c05ec0ca715a06d21fa05671248e0135bd

See more details on using hashes here.

File details

Details for the file xclean-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: xclean-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for xclean-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99d39f80d55156bf85e4e370ee004b4b3c9ee5ada63b6d70018b2075869b3e24
MD5 68831162a3f634dbc87f826743e0e7ad
BLAKE2b-256 1875e302ebb93ccad55695ce0260d54d83c8d56798c2074bdf0749088c4b9dba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page