filesync

Simple Rust library to sync files between different sources.

Currently supports:

  1. Local files
  2. S3 (s3 feature)

Usage

```rust use filesync::{ local::LocalFiles, s3::S3Files, };

let config = awsconfig::loadfromenv().await; let client = awssdk_s3::Client::new(&config);

let mut local = LocalFiles::new("./mylocalfiles", true); let mut s3 = S3Files::new(client, "mys3bucket", "path/in/bucket", true);

let syncedpaths = filesync::synconeway(&mut local, &mut s3).await?; asserteq!(syncedpaths, vec![PathBuf::from("mychanged_file.txt")]); ```