Help needed! I lost the folder tree in iCloud Photos
I have the following situation.
I have a subscription for a 200 GB iCloud drive. I have a 180 GB Photo library on my iMac which is nicely sorted into many folders and subfolders. I have this library synced with iCloud and via iCloud with my iPad.
Because of the large size of the photo library, I decided not to sync the Photo library with my iPhone. I turned the iCloud sync off on my iPhone. As a result, the photos were deleted from the iPhone Photos app. However, the empty folder tree remained on my iPhone. So, I can see the folder tree in the iPhone Photos app but the folders are empty.
Having the empty folder tree on my iPhone annoyed me. For that reason, I deleted the folder tree on my iPhone.
A few weeks later, today, I found out that with the Optimize iPhone Storage in the Photos setting, I can limit the storage use to a few GB. So, I thought, in this case, it is OK to sync the iCloud photos with my iPhone. So, I turned on again iCloud sync in the Photos app setting on my iPhone.
Now remember that I earlier deleted the folder tree on my iPhone. So, now what happened is that the folder tree was also deleted in iCloud and subsequently on my iPad. All the photos are still there.
I have not turned on my iMac and I also have an up-to-date backup of the iMac photo library on an external HD.
Question: What is the best way to get the folder tree back into iCloud and synced to my iPad and iPhone?
Obviously, as soon as I open the Photos app on my iMac the folder tree will be deleted. One way to avoid that might be to disconnect my iMac from the internet and then rename all folders in the folder tree. And then reconnect to the internet. Then this folder tree will be newer and should be synced.
But that will be a lot of work because I have so many folders and subfolders. Therefore I am wondering whether there is not another simpler and faster way.
iMac 27″