copy-metadata

Crates.iocopy-metadata
lib.rscopy-metadata
version0.1.0
sourcesrc
created_at2024-09-22 06:36:02.762518
updated_at2024-09-22 06:36:02.762518
descriptionCopy metadata from one file to another
homepagehttps://github.com/lxl66566/copy-metadata
repositoryhttps://github.com/lxl66566/copy-metadata
max_upload_size
id1382767
size10,635
Absolutex (lxl66566)

documentation

README

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
Commit count: 4

cargo fmt