Union copier:copy files from one or more dirs to target and autorename files if same already presents
Project description
Union copier:
Default copy behavior offer to skip or replace files which names already existed in the target directory This script allowed to copy files from one or more directories at once to target directory with union mode; if a file with same name present in the destination directory, then the file will be renamed with a unique suffix
Note:
- symlinks are ignored
Installation
python3 -m pip install --user ucopy
Usage
Definition: ucopy sourcepath destpath [-e allowed_extensions] or [-x excluded_extensions] [-v|--verbose]
Example 1: copy only png files, show progress log
ucopy /src/path/ /dest/path/ -e png --verbose
Example 2: copy files with extensions .png .jpg .txt
ucopy /src/path/ /dest/path/ -e .png,.jpg,.txt
Example 3: copy all files, but exclude ones with .zip and .gz extensions
ucopy /src/path/ /dest/path/ -x zip,tar.gz
Example 4: copy all files without restriction
ucopy /src/path/ /dest/path/ -e *
Example 5: copy from multiple source directories matched by glob pattern
ucopy /src/path/*/some/*/ /dest/path/
Note: You can specify file extensions with or without dots
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
File details
Details for the file ucopy-1.0.1.tar.gz
.
File metadata
- Download URL: ucopy-1.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c17811106267c2e693be1e05d2063556a53561e4cc22101e56b82df6cb765306 |
|
MD5 | cec71a4fdd87e3979a62a0aa38e5ada5 |
|
BLAKE2b-256 | 17e033f24808820b264c8a718312ce81b420522c5ffe37492528eb0490a11630 |
File details
Details for the file ucopy-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: ucopy-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aa8e46bd1756af8b547ae4ae0451d9a6b0266718b9600f3fed11db3f9c58201 |
|
MD5 | 162bd34f71344d1193d366bafc7a818a |
|
BLAKE2b-256 | ea8cb1ca6aad7e1ebb7521e881336891a4ea97a7a094d3f6ad9061994ef18952 |