elFinder\elFinderVolumeLocalFileSystem::_unpack PHP Method

_unpack() protected method

Unpack archive
Author: Dmitry (dio) Levashov
Author: Alexey Sukhotin
protected _unpack ( string $path, array $arc ) : void
$path string archive path
$arc array archiver command and arguments (same as in $this->archivers)
return void
    protected function _unpack($path, $arc)
    {
        $cwd = getcwd();
        $dir = $this->_dirname($path);
        chdir($dir);
        $cmd = $arc['cmd'] . ' ' . $arc['argc'] . ' ' . escapeshellarg($this->_basename($path));
        $this->procExec($cmd, $o, $c);
        chdir($cwd);
    }