The Store in iCloud function that was introduced with macOS Sierra looks interesting to try out. It will store both the
Desktop and the
Documents folders in iCloud Drive instead of on the local drive.
I want it to store only the Desktop folder in iCloud, and not the Documents folder. Is this possible?
I noticed that by turning On and Off the Store in iCloud function, the files that had already been transfered to iCloud Drive (when the function was originally turned On) stayed there – and empty folders called
Desktop — Local and
Documents — Local were created in the user home directory.
So is it possible to make use of this circumstance, to keep only Desktop files in the iCloud? Will applications that make use of the Documents folder decide to use the iCloud folder or the local folder?
Update MacOS Catalina:
I don't think toxefa's answer below is working anymore with macOS Catalina. Upgrading the OS created a new empty Desktop folder in the user home directory. I tried deleting that Desktop folder via Terminal (
rm -rf /Users/<yourusername>/Desktop) and then created a symlink per the answer
ln -s /Users/<yourusername>/Library/Mobile\ Documents/com~apple~CloudDocs/Desktop /Users/<yourusername>/Desktop, but after reboot the symlink is gone and a new empty Desktop folder is always created in the home directory.