Recursively copy missing files to a directory
Project description
parsync
Parsync lets you recursively copy missing files to a directory.
This is equivalent to cp -r --ignore-existing SRC DST but using concurrent copies to accelerate the process.
Example
Copy the content of the current directory:
parsync * /dest
Copy with 2 threads:
parsync -p 2 src dest
Copy only jpeg files and skip a specific directory, note the usage of python regex syntax:
parsync --filter='\.jpg$' --exclude='/somedir/' src dest
Usage
usage: parsync [-h] [--procs PROCS] [--filter [FILTER ...]] [--exclude [EXCLUDE ...]] [--version] SRC [SRC ...] DST
Recursively copy missing files to a directory.
This is equivalent to: cp -r --ignore-existing SRC DST
Note: matching patterns use python regex syntax.
positional arguments:
SRC source files and directories
DST destination directory
options:
-h, --help show this help message and exit
--procs PROCS, -p PROCS
maximum number of concurrent copies
--filter [FILTER ...], -f [FILTER ...]
pattern to filter source files
--exclude [EXCLUDE ...], -e [EXCLUDE ...]
pattern to exclude source files
--version, -v show program's version number and exit
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parsync-0.1.0.tar.gz.
File metadata
- Download URL: parsync-0.1.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
827dc292c79ec0c11f7cda83a575b7e7a209ac8bdb630a3a45c2a026104e176e
|
|
| MD5 |
5c5e73456e4f8cf299cbd7b0cbb7b02b
|
|
| BLAKE2b-256 |
6cf0c91fa3d0cf142d11f3b3ecec0b60a25da40617798f534b53b718d34ee66a
|
File details
Details for the file parsync-0.1.0-py3-none-any.whl.
File metadata
- Download URL: parsync-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7842a5e6c7346c05e7a4b28f773ae10d75ac094025358d955ef7b5bbe93c731
|
|
| MD5 |
533dfbbc7e3686710de30c83295d8d9e
|
|
| BLAKE2b-256 |
a0029a2ea1a19c858a67ec84780aa3127c4e191345f468faa5472fdb32d3ee3f
|