1 unstable release

0.1.0 Sep 22, 2024

#1041 in Filesystem


Used in git-simple-encrypt

MIT license

6KB
61 lines

copy-metadata

cross-platform lib to copy metadata from one file to another.

Usage

cargo add copy-metadata

functions:

fn copy_permission(from: impl AsRef<Path>, to: impl AsRef<Path>) -> io::Result<()>;
fn copy_time(from: impl AsRef<Path>, to: impl AsRef<Path>) -> io::Result<()>;
fn copy_metadata(from: impl AsRef<Path>, to: impl AsRef<Path>) -> io::Result<()>;
// copy_metadata = copy_permission + copy_time

Dependencies

~0–6.5MB
~37K SLoC