MDL-23479 folder Restore code