Skip to main content

File de-duplication utility

Project description

xclean

File de-duplication 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 to actually remove the duplicate files.

Archiving duplicates

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

Archiving new files

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

Trashing duplicates

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

Reset the database

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

Compare XMP files as well

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

Compare AAE files as well

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

Scanning specific file types

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

Prompt before changing

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

Installation

Using pypi

pip install xclean

Using github

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

Usage

usage: xclean [-h] 
              [--main MAIN] 
              [--target TARGET] 
              [--archive-to ARCHIVE_TO] 
              [--archive-new ARCHIVE_NEW] 
              [--import-new MAIN]
              [-i [EXTENSIONS ...]] 
              [-x [EXTENSIONS ...]] 
              [--unprotect] [--remove] [--trash] [--clean] [--prompt]
              [--new] [--dup] [--summary] [--copy] [--ignore-existing]

options:
  -h, --help            show this help message and exit
  --main MAIN           Directory where master files reside
  --target TARGET       Directory where duplicate files may reside
  --archive-to ARCHIVE_TO
                        Archive duplicates to folder
  --archive-new ARCHIVE_NEW
                        Archive new files to folder
  --import-new MAIN     Directory where to import new master files
  -i [EXTENSIONS ...], --include [EXTENSIONS ...]
                        Include Extensions
  -x [EXTENSIONS ...], --exclude [EXTENSIONS ...]
                        Exclude Extensions
  --unprotect           Unprotect main files
  --remove              Remove duplicate files
  --trash               Trash duplicate files
  --clean               Clean database
  --xmp                 Include XMP files in checks for duplicates
  --aae                 Include AAE files in checks for duplicates
  --new                 Report new files
  --dup                 Report duplicate files
  --summary             Report summary of changes
  --copy                Copy files instead of moving
  --ignore-existing     Ignore existing archive files

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.0.14.tar.gz (11.6 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.0.14-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xclean-0.0.14.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for xclean-0.0.14.tar.gz
Algorithm Hash digest
SHA256 606447d2b0d6c86f4c846c92756b5bd8574c37b423300e12708fc1c960dbff20
MD5 7db5994833eb45270bdc04dfca6f516b
BLAKE2b-256 8c8dbd324c336b1ab58a2cb52d73fb721d77c6fafd116356a1863af5f6b7844f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xclean-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for xclean-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 44c814620e8f7ba0c8b6fa5d7e0950d1311cd27ee6449843b474e0a88c17a1d9
MD5 486244dd1b38dd1dc2f6c39e7798a3f4
BLAKE2b-256 c32cf3eb4bf6bd3108c314ec5546bc1c98e27c6f68eca0ffe40865f482f67967

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