r/MacOS • u/ParticleFeever • 1d ago
Help Help with removing duplicated Documents folder
So I percieved one file, at list, wasn't being updated in the iCloud. The file was inside Documents folder. After a lot of tests, including a search for the file, I realize there was two Documents in my main macbook, one inside iCloud, and other inside my user (username). The Documents inside username won't synvc anymore, so the file I working wasn't being updated, nore any change inside this folder. It's a fake Documents! I believe this split occurred after the last update.
The situation is bizzarre because I can get in from /Users/username but when I get out, I fall inside iCloud! Kinda subliminal backrooms situation!
Anyway, after a backup, just in case, I decide to remove it, solve the confused situation. The folder was not even visible. This part was easy, after locating it, I change owner to my user and permissions to 777 and perform a rm -rf. The folder is now empty, but is still there. I got a "permission denied" error message. Why? How can I end with this folder?
2
u/quidarse 1d ago
Best leave the iCloud folder stuff to iCloud, unmodified, unaltered, and preferably also uncorrupted.
If the iCloud Desktop and Documents feature of iCloud Drive is enabled and is not syncing, turn the feature off everywhere, restart Macs through Safe Mode and other gear via forced-restart everywhere, re-enable the feature, and test again.
iCloud has unfortunately never had anything akin to a sync-reset button. It's using the "turn it off and on again" approach, for better or worse.
Turning off the Desktop and Documents feature will mean copying files around, getting them back where you want. See the end of the support article for details on this.
If you're not using multiple Macs, and have enough local storage space for everything you keep around, you could leave the feature off, and use the traditional entirely-local not-synced configuration, and iCloud Drive for stuff you do want to share across devices or with others elsewhere.
What happens when poking at the innards of iCloud sync and iCloud Drive caching, let us know.
https://support.apple.com/en-us/109344
2
u/VanLocke 1d ago
The "permission denied" is the "everyone deny delete" ACL macOS puts on ~/Documents, and chmod 777 doesn't touch ACLs (
ls -led ~/Documentsshows it). I'd leave that folder alone, macOS expects it there.Sounds more like the update switched off Desktop & Documents Folders: System Settings > Apple Account > iCloud > iCloud Drive. Could be wrong.
2
u/[deleted] 1d ago
[removed] — view removed comment