How to stop iCloud from syncing a folder?

Anyone who has used Apple products knows that ICLOUD will automatically synchronize files, but you do not want to synchronize some folders. How to set these files that you do not want to synchronize? Today, the editor of MacW brought an iCloud tutorial-how to prevent iCloud from syncing a folder?
Insert picture description here
Solution

At this time, you only need to rename the folder you don't want to synchronize, and add ".nosync" to its file name. As shown in the figure below, we call this thing a flag to tell iCloud not to touch this folder and its sub-files.

As shown in the figure below, the marked folder will show that iCloud is not available, which is exactly what we want. If you want it to synchronize again, just delete ".nosync".
Insert picture description here
Right-click shortcut menu

If you don’t want to add it manually every time, I made a workflow plugin and renamed it automatically. Download this workflow file and drag it to the "~/Library/Services" folder.

At this time, you will see an additional option "Prohibit Sync" in the right-click menu. Click it to automatically add a ".nosync" flag to the folder to prohibit synchronization. To restore synchronization, just rename and delete the flag in the same way.
Insert picture description here
Some project files are more sensitive to file names. Renaming the root folder directly may cause some file search errors. It is recommended to create a folder that is forbidden to be synchronized in iCloud, and put the folders you don’t want to be synchronized here. safe.

Guess you like

Origin blog.csdn.net/macwbear/article/details/108254269