Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hhcp-0.0.2.tar.gz (5.1 kB view hashes)

Uploaded source

Built Distribution

hhcp-0.0.2-py2.py3-none-any.whl (6.0 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page