Skip to main content

Merge directory contents, deduplicating files based on their content.

Project description

Contentcopy

Contentcopy merges directory contents, deduplicating files based on their content.

If a file with differing contents but the same name is encountered, the copied filename will automatically have a number appended, making it easy to see duplicate filenames.

Usage

python3 contentcopy.py <source> <dest>

e.g.

python3 contentcopy.py old_pictures new_pictures

Will copy all pictures in old_pictures that are not yet in new_pictures to new_pictures. After this you can safely delete old_pictures without worrying about data loss.

Installation

pip install contentcopy

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

contentcopy-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

contentcopy-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file contentcopy-1.0.0.tar.gz.

File metadata

  • Download URL: contentcopy-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for contentcopy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4e535c0d0c03a01bb233dc7f1210b560667cf10688c18b76a70b6c784c9bd37f
MD5 e1aaca81c7109b8dbdcf624cba9f72b1
BLAKE2b-256 ef3cadc293ae3922d2681d2919535bdbacef174fc90c6f7fdacabd045d78b9bf

See more details on using hashes here.

File details

Details for the file contentcopy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: contentcopy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for contentcopy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54d47e9d61af8666770d96a03deebab82a73d1cbba12c748bc4e4301a2d98669
MD5 34c6adfbdbce29c7f7b3ee90047ec43e
BLAKE2b-256 48fa98260380c60605fc67a0217980bdbece79a4ca8d32ffcafc479665008f98

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