During the use of iCloud, you will inevitably have some folders that you do not want to sync.
For example, project files such as game productions and video clips, iCloud's continuous synchronization mechanism will keep some files in these folders continuously uploaded and unavailable.
At this point you just need to rename the folder you do not want to sync, and add a ".nosync" to the file name.
We call this a flag to tell iCloud not to touch this folder and its sub-files.
The annotated folder shows that iCloud is unavailable, which is exactly what we want.
If you want it to sync again, delete ".nosync".
If you don't want to add it manually every time, I made a workflow plugin and automatically renamed it.
Download this workflow file and drag it to the "~ / Library / Services" folder.
At this time, you will see a "Prohibit sync" option in the right-click menu. Click to add a ".nosync" flag to the folder to disable sync. To resume synchronization, just rename and delete the flag.
Some project files are sensitive to file names. Directly renaming the root folder may cause some file lookup errors. It is recommended to create a folder that is not allowed to sync in iCloud, and then put the folders you do not want to sync here. safe.