Git Product home page Git Product logo

ppcp's Introduction

ppcp

Command-line tool for copying files and directories with progress bar

WARNING

This is an early stage software. Do not use it for anything serious. Please send feedback via github issues

USAGE

# copy file to dir
ppcp <path/to/file> <path/to/dest/dir>

# copy file to file
ppcp <path/to/file> <path/to/dest/file>

# copy dir to dir. directory /path/to/dest/dir will be created
ppcp <path/to/dir> <path/to/dest>

# copy multiple files/dirs
ppcp <path/to/file1> <path/to/dir2> <path/to/dest>

Error handling

Currently, ppcp will panic on any error. TODO is to add a dialog asking abort/skip/skip all/retry/overwrite and command-line option for default actions

Alternatives

rsync -P

https://code.lm7.fr/mcy/gcp

ppcp's People

Contributors

acidnik avatar pheki avatar stephin-thomas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ppcp's Issues

cli switches for parallel workers and hash verify before closing source and dest files

Your file copy is sound, but I didn't see any switches to adjust the number of threads you copy files with in parallel.

My change request is that you provide a cli clap arg for cpu cores to use . i.e. --cpucorepercenttouse 100
In this use case if your system has 8 cores, then it would use 8 workers to copy 8 files in parallel.
If we want to adjust it to a lower level to all the computer to do other things, that would be useful.

--verifybeforeclosefiles [hashcheckalgo]
In this use case you would want to hashcheck the source against the hashche of the destination after copying the file. There could be a way to hash check while you have all bytes in memory before the write, that would be cheating since it's all about verify after the write and not before.
Technically after all the bytes are written, but before you close the file, you may ftell the position back to the beginning of the file, read all the bytes on the destination device with the bytecount before you close the destination file after writing it. That could save precious time since I believe closefile is an expensive os operation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.