| Crates.io | filesync |
| lib.rs | filesync |
| version | 0.2.0 |
| created_at | 2023-09-07 13:04:50.373047+00 |
| updated_at | 2025-02-25 21:53:43.867044+00 |
| description | Sync files between different sources |
| homepage | https://github.com/mistodon/filesync |
| repository | https://github.com/mistodon/filesync |
| max_upload_size | |
| id | 966220 |
| size | 102,966 |
Simple Rust library to sync files between different sources.
Currently supports:
s3 feature)use filesync::{
local::LocalFiles,
s3::S3Files,
};
let config = aws_config::load_from_env().await;
let client = aws_sdk_s3::Client::new(&config);
let mut local = LocalFiles::new("./my_local_files", true);
let mut s3 = S3Files::new(client, "my_s3_bucket", "path/in/bucket", true);
let synced_paths = filesync::sync_one_way(&mut local, &mut s3).await?;
assert_eq!(synced_paths, vec![PathBuf::from("my_changed_file.txt")]);