zaf / npcp

Parallel file copy in Nim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npcp

Parallel file copy

Usage:

npcp [options] source destination

Description:

The npcp utility copies the contents of the source file to the destination file. It maps the contets of the files in memory and copies data in parallel using a number of threads that by default is the number of available CPU threads.

Options:

-f, --force: Overwrite destination file if it exists.

-s, --sync: Sync file to disk after done copying data.

-t=[threads], --threads=[threads]: Specifies the number of threads used to copy data simultaneously. This number is by default the number of available CPU threads.


Installation:

To build run:

`nim release`

For more options:

`nim help`

About

Parallel file copy in Nim

License:GNU General Public License v3.0


Languages

Language:Nim 100.0%