worktree_setup_copy 0.2.0

Fast parallel file copying with progress tracking
Documentation

Fast parallel file copying with progress tracking.

This crate provides efficient file and directory copying operations with:

  • Parallel directory enumeration using jwalk
  • Parallel file copying using rayon
  • Copy-on-write support via reflink-copy (APFS, Btrfs, ReFS)
  • Progress callbacks for UI integration
  • Fast file counting

Example

use worktree_setup_copy::{copy_directory, CopyProgress, count_files};

// Count files first for progress bar
let total = count_files(source);

copy_directory(source, target, |progress: &CopyProgress| {
    println!("{}/{} files copied", progress.files_copied, progress.files_total);
})?;