Non-English folder name workaround #454
LisaWeijers
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey people!
Perhaps, another non-english-native is struggling with this problem, and will be a little faster than me with finding a workaround. The problem is as follows: the script (as of version 3.4.3) has a hardcoded parser for folders with the name "Photos from " (actually only 18, 19 and 20**). It took me a few days to realize this was the problem why this script didn't run for me. It doesn't give a very clear error, it merely says that the takeout folder could not be found and that you should check and retry. It doesn't tell you "I was looking for a folder that was names "Photos from ****" but couldn't find it -- but that is what happened to me specifically.
I used the following workaround: I forked this project, and made a single change to
folder_classify.dart. Line 9 holds the regex that looks for "Photos from", which I changed into "Foto_s van" (this was how my "year" folders were named). That's the only necessary code change. I had to install the dart-skd to run the script now, and that's basically it. Use command prompt, change directory to the project folder, and "dart run" it!In hindsight, it might have been a little easier to just rename my folders into "Photos from" format, but as soon as I realized what the problem was it was fixed in no time.
So, perhaps another non-english person can be helped with the information in this post. Good luck!
Beta Was this translation helpful? Give feedback.
All reactions