Metadata-Version: 2.1
Name: ucopy
Version: 1.0.0
Summary: Union copier:copy files from one or more dirs to target and autorename files if same already presents
Home-page: https://github.com/Insolita/ucopy
Author: Insolita
Author-email: webmaster100500@ya.ru
License: MIT
Keywords: copy,move,rename
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown

Union copier:
=============

Copy files from one or more directories to target directory with union mode;
if file with same name present in destination directory than file will be renamed with unique suffix

Note:
   - symlinks are ignored

Installation
------------

`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*



