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.