$folder->set_readonly
folder
Sets the readonly attribute for the folder. Once readonly has been set, sync won't perform any updates to the actual folder.
readonly
sync