Skip to content

Improve mv and cp Commands

Michael Aaron Murphy requested to merge mmstick:mv-improvement into master

mv

  • Add ability to move multiple arguments
  • Ability to also move directories
  • Use fs::rename() when moving across the same device, else use fs::copy()
  • Recursively copy directories using the walkdir crate
  • Implemented the interactive, no-clobber, update and verbose flags
  • Added a MAN_PAGE constant with the help flag
  • Carefully crafted all error messages
  • Processes all input arguments and if any of them fails, will continue to process arguments and exit with a status of 1.

cp

  • Same as mv but only with copying capabilities and a recursion flag

Merge request reports