open($targetDir . 'archive.zip'); if ($res !== true) { echo 'ERROR unpacking archive'; exit; } $zip->extractTo($targetDir); $zip->close(); // run the profile, which should be associated with final import file $om->get('\Unirgy\RapidFlow\Helper\Data')->run('Your Import Profile');