cboudereau / gcs-rsync

Lightweight Google Cloud Storage sync Rust Client with better performance than gsutil rsync
https://docs.rs/gcs-rsync/
MIT License
13 stars 8 forks source link

feat/prefix: add prefix support #34

Closed cboudereau closed 7 months ago

cboudereau commented 7 months ago

gcs-rsync will not add the extra slash in the prefix anymore to fully support prefix and partial sync.

Previously, gcs-rsync assumed that prefix was always a folder (by adding an extra slash at the end of prefix search) while with this new feature, the folder is inferred (by detecting the current folder with last slash) to be stripped from the relative path.

Backward compatibility: simply add a slash at the end of the prefix and the behavior will remains same as before:

codecov[bot] commented 7 months ago

Codecov Report

Attention: Patch coverage is 97.72727% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 89.12%. Comparing base (ad96a86) to head (ee6f466).

Files Patch % Lines
tests/config/gcs.rs 81.25% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #34 +/- ## ========================================== - Coverage 89.23% 89.12% -0.11% ========================================== Files 16 16 Lines 2405 2473 +68 ========================================== + Hits 2146 2204 +58 - Misses 259 269 +10 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.