Skip to content

handu/copy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

copy-rust

Reimplementation of the cp command in Rust.

A Rust implementation of a cp-like command with progress output, vibe coded.

Functionality

  • Copy files
  • Copy directories recursively (-r)
  • Archive mode (-a) with metadata preservation
  • Progress display in bytes or percent (-p)
  • Overwrite controls (-f, -i, -n)
  • Verbose output (-v)
  • Preserve source path structure under destination (--parents)
  • Symlink handling (-L, -P, -d)
  • Remove destination before writing (--remove-destination)
  • Built-in help and version flags (--help, --version)

Sample Usage

copy source.txt destination.txt
copy -r src_dir dst_dir
copy -a -p src_dir backup_dir
copy -n -v file.txt existing.txt
copy --parents ./path/to/file.txt ./out
copy -P symlink.txt copied_link.txt
copy --remove-destination new.txt existing.txt

About

cp with progress bar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages