Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.78 KB

README.md

File metadata and controls

28 lines (23 loc) · 1.78 KB

synchronize_photo

Synchronize Photo Collections by Date

To run this you need

  1. Clone repository git clone git@github.com:rwwwx/synchronize_photo.git
  2. To run use: cargo r -- YourName -- /full/path/to/your/photos for example: cargo r -- Vlad -- /Users/vladyslav.matiukhin/Documents/photo_example
  3. Or use cargo r -- to run this program on photo_example folder inside of project for My.
  4. Or use cargo r -- Lev to run this program on photo_example folder inside of project for Lev.

MAKE SURE

Strictly follow the form of writing the date when naming day folders. Make sure your folder structure looks like this:

/// 2024-04-15 -> Lev   -> Photo1, Photo2, Photo3
///            -> My    -> Photo1, Photo5, Photo3
///            -> Denis -> Photo1, Photo2, Photo4
///
/// 2024-04-16 -> Lev   -> Photo1, Photo2, Photo3
///            -> My    -> Photo1, Photo5, Photo3
///            -> Denis -> Photo1, Photo2, Photo4

Output example

INFO  [synchronize_photo] For day: '2024-04-15', you missing: [{PhotoId("6c08ca358619e651c500c84b00804dcb33e469a93c5115fbcd84748e698082a6")}] - we can find it in 'Denis' collection.
INFO  [synchronize_photo] For day: '2024-04-16' no difference have been found.
INFO  [synchronize_photo] For day: '2024-04-17', you missing: [{PhotoId("400f888284030bf535f20ca0a763af139760d1ef3aa34b741cc52506805b3560")}] - we can find it in 'Lev' collection.
INFO  [synchronize_photo] For day: '2024-04-17', you missing: [{PhotoId("d25161be204e702671839e39be0afce1d91d47baa80d1213e7e07f91d205f386")}] - we can find it in 'Denis' collection.
INFO  [synchronize_photo] For day: '2024-04-18', you missing: [{PhotoId("d25161be204e702671839e39be0afce1d91d47baa80d1213e7e07f91d205f386")}] - we can find it in 'Denis' collection.