Library to sync files to, from and between Google Cloud Storage buckets
This project depends on cloud-storage-rs crate.
To access bucket you need to specify SERVICE_ACCOUNT
environment variable which should contain path to the service account json key.
```rust let forceoverwrite = false; let sync = Sync::new(forceoverwrite);
for i in 1..=2 { let opcount = sync.synclocaltogcs( "/some/local/fileordir", BUCKET, "some/directory", ).await?;
if i == 2 {
assert_eq!(op_count, 0); // passes
}
let op_count = sync.sync_gcs_to_local(
BUCKET,
"myprefix",
"../some/directory"
).await?;
if i == 2 {
assert_eq!(op_count, 0); // passes
}
} ```