1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-15 17:51:07 +00:00
uutils-coreutils/src/cp
shutefan c20ce9bf74 cp: fix compiler warnings
Fixes seven compiler warnings in cp.rs:
- unused imports: `c_char`, `c_int`
  -> removed
- value assigned to `inode` is never read
  -> no more default value, immutable
- value assigned to `nlinks` is never read
  -> no more default value, immutable
- unused variable: `src_path`
  -> removed
- unused `std::result::Result` which must be used
  -> only in error on unsupported platforms (Windows) which is
     already handled with #[cfg(unix)]
- variable `preserve_context` is assigned to, but never used
  -> removed
- value assigned to `preserve_context` is never read
  -> see above, remove
2017-10-04 21:43:06 +02:00
..
Cargo.toml cp: add support for preserving links on windows. 2017-08-23 15:20:23 +02:00
cp.rs cp: fix compiler warnings 2017-10-04 21:43:06 +02:00
main.rs Refactor and simplify build for utilities. 2015-12-07 21:56:45 -05:00
README.md implement many copy flags 2017-07-16 19:20:07 -05:00

Feature list

To Do

  • archive
  • attributes-only
  • copy-contents
  • no-dereference-preserve-linkgs
  • dereference
  • no-dereference
  • preserve-default-attributes
  • preserve
  • no-preserve
  • parents
  • reflink
  • sparse
  • strip-trailing-slashes
  • update
  • one-file-system
  • context
  • cli-symbolic-links

Completed

  • backup
  • force (Not implemented on Windows)
  • interactive
  • link
  • no-clobber
  • no-target-directory
  • paths
  • recursive
  • remove-destination (On Windows, current only works for writeable files)
  • suffix
  • symbolic-link
  • target-directory
  • verbose
  • version