Add folder_update hook code