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.

Files for hhcp, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size hhcp-0.1.2-py2.py3-none-any.whl (6.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size hhcp-0.1.2.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page