No project description provided
Project description
hhcp
Copy a large number of files with multi thread to speed up normal cp.
Install
pip install hhcp
Usage
Copy a list of files with a filelist to a specified folder.
hhcp -f path_of_file_list -d destination_folder [--pre root_of_all_files] [--force]
Copy a dir to a specified folder
hhcp -p path_of_dir_to_be_copied -d destination_folder [--force]
Only one of -p
and -f
can be used at the same time.
Example
Copy a list of files with a filelist called list.txt
to a specified
folder /mnt/lustre/share
with root path /mnt/hh
and force
overwrite files with same name.
hhcp -f list.txt -d /mnt/lustre/share --pre /mnt/hh --force
Copy the dir dir1
in current path to another folder hh
in the
current path without overwrite.
hhcp -p ./dir1 -d ./hh
Parameters
-
p
Path of the directory to be copied.
-
f
Path of the file list.
-
d
Path of the destination
-
force
Add this to allow force overwrite
-
pre
The path prefix of the files in the filelist.
Can only be used with
-f
.
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 hhcp-0.1.2.tar.gz
.
File metadata
- Download URL: hhcp-0.1.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9905f637bbfadef970a28cd7b5b38d395ebc208044da27dd86b264e6ad419388 |
|
MD5 | cf8a38f75913ffb10e43ec6a8a30e897 |
|
BLAKE2b-256 | 94e96758f63255c41c70b4b987ac8f9b0ec0ae0ccefe4a67568e13071b9e81b3 |
File details
Details for the file hhcp-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: hhcp-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 003c86a473a9fbf3da2cb638b11f5530f356bb1f98b8b97c04e7c6701200f069 |
|
MD5 | 178039d749066283a51f0adc3246b362 |
|
BLAKE2b-256 | 02ac81529824e815db7e9bbfe064afbb485859416638b82e53146324a5467d13 |