Does the script handle duplicate file names? #244
Replies: 1 comment
-
yes it does 🎉 - i can't guarantee anything for sure, because there are 85023952 cases for everything, but i can proudly say
It just adds
If they will literally be same photos in same folders... then it's up to your unzipping app what to do about this 🤷 read the visual instruction in the readme
What strategy? A smart one 🧠 Serious ansewar: in what folder they are. There cannot be two same named files in one folder. If there are in two different then it will just see that Even more serious answear - there are 115 lines of code dedicated to match those jsons, in all fucked up edge cases that we found: https://github.com/TheLastGimbus/GooglePhotosTakeoutHelper/blob/master/lib/date_extractors/json_extractor.dart |
Beta Was this translation helpful? Give feedback.
-
First of all, thanks for the script!
My Google Photos Takeout contains multiple photos that have the same name in different zip folders (as a result, they also have the same name for metadata json files).
Question 1: I'm wondering if the script will handle those files with the same names, i.e. keep them all in one folder without overwriting/replacing each other (maybe append a count/random string to the end of the file when duplicate names are found).
Question 2: If the script does handle file name collision, what's the scripts strategy of matching the photos with metadata json files. For example, let's say there are two files with the same name: first photo and second photo; and there are two metadata json with the same name: first photo json and second photo json. How does the script know it should match first photo json with first photo, but not match second photo json with first photo?
Thanks a lot for your help!
Beta Was this translation helpful? Give feedback.
All reactions