Updating the Database
February 12th, 2022 | Back to Blog Listing

As a small technical note for my blog, I've been busy writing a ton of code to fix some of the issues that have recently come up. I'd been working on this over the past several months, but took a bit of a break in January while tending to other things. I've written about this rather extensively before, but most of the problems stem from Apple stupidly reorganizing the way they store photos within the iPhoto app.

While they used to keep a tight directory structure on your photos disk (making it extremely easy to RSync to one's personal server), they are now using some kind of hex-based directory structure and simply add all of the photos into these folders using $0 through $F (eg: ~/0/, ~/1/, ... ~/F/). Worse still is that they include the photos in the directories seemingly at random.

This makes it extremely difficult to find your new files and move them where they need to go. Yes, you can use the export feature, but this is SUCH a slow process and makes absolutely no sense for storing your own photos on your own system. It's absolutely bonkers that they've adopted this new structure.

Of course this is all in line with Apple taking the blue ribbon for "most evil tech company". They're quite clearly doing this to make it more and more difficult for people to use software outside of the Apple realm thus ensuring that people stick with iPhoto (and much more insidiously, their Cloud services). I've been writing about this for nearly 20 years now and this is just the latest example of it.

This required me writing code that would look at the MD5 checksum for every single file and then compare those to the files that I already had on my server. The ones that were missing were copied into one of the new directories and processed.

I still have a ton of photos needing to be sorted, but it's coming along in my spare time.