Crates.io | copy-metadata |
lib.rs | copy-metadata |
version | 0.1.0 |
source | src |
created_at | 2024-09-22 06:36:02.762518 |
updated_at | 2024-09-22 06:36:02.762518 |
description | Copy metadata from one file to another |
homepage | https://github.com/lxl66566/copy-metadata |
repository | https://github.com/lxl66566/copy-metadata |
max_upload_size | |
id | 1382767 |
size | 10,635 |
cross-platform lib to copy metadata from one file to another.
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