Updatefolderpermissions

Updates permissions of a folder.