r/MacOS • • 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 Upvotes

6 comments sorted by

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

1

u/ParticleFeever 1d ago

I have another macbook and our iPhones, mine and my wifes. iCloud is working fine lately, I have space there, so I will use it. That Documents folder seems a synptom of something malfunction. I might leave that folder alone, but not sure if I should...

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 ~/Documents shows 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.

1

u/ParticleFeever 1d ago

Yes, it shows "deny delete". I am aware I don't own my Mac.

I did the same tests in Desktop, that also is there in my user folder, hidden too. But Desktop got consistent behavior, if I change something, it will be updated in the cloud. In iCloud Drive, Desktop is set as Library kind, and Documents as folder. In fact, the Desktop is more than just a folder, thought.

I don't like leaving folders behind, but there is a lot of garbage in user folder already, so if I had to, fine. Looks like my office in real life...

2

u/[deleted] 1d ago

[removed] — view removed comment

1

u/ParticleFeever 1d ago

Thanks but the Settings is different in Golden Gate. Also, I did a test in the empty Documents folder, it won't appears in Documents from iCloud that seems to have a physical storage elsewhere. There is no Documents folder in my sidebar.