/** * Extracts the tar file to the destination directory. * N.B Tar file must not be compressed. * @param string tar file * @param string path where the contents of tar file are to be extracted * @return boolean true if extract successful, false otherwise. */ protected function deployTarFile($path, $destination) { if (($fullpath = realpath($path)) === false || !is_file($fullpath)) { throw new TIOException('assetmanager_tarfile_invalid', $path); } else { $tar = new TTarFileExtractor($fullpath); return $tar->extract($destination); } }