I'm having a tough time trying to reclaim some unused disk space on one of my macOS 10.13 partitions.
Thanks to GrandPerspective, I think I found out that every time I delete some items in Photos for Mac, in the case where they were inherited from iPhoto, what happens is that the hard link sitting in the
Photo Library.photoslibrary folder is deleted, so resulting in an orphaned file being left over in the
iPhoto Library.migratedphotolibrary folder.
So what I would need is to
- find all files with hard link count = 1 in the old
iPhoto Library.migratedphotolibraryfolder (the ones with link count = 2 need to stay there, as most likely they are hard-linked also in the new
- delete them.
Some batch procedure executable from Terminal achieving both on the fly would be super. Even some initial hint would help me out a lot.