File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -29,20 +29,16 @@ class TarGzExtractor implements ExtractorInterface
2929 */
3030 public function extract (\SplFileInfo $ archive , \SplFileInfo $ destination )
3131 {
32- if (preg_match ('/^win/i ' , PHP_OS )) {
32+ // if (preg_match('/^win/i', PHP_OS)) {
3333 $ targz = new \PharData ($ archive ->getPathname ());
3434 /** @var \PharData $tar */
3535 $ tar = $ targz ->decompress ();
3636 $ tar ->extractTo ($ destination ->getPathname ());
3737 unlink (str_replace ('.tar.gz ' , '.tar ' , $ archive ->getPathname ()));
38- } else {
38+ /* } else {
3939 exec('tar xzf ' . $archive->getPathname() . ' -C ' . $destination->getPathname());
40-
41- var_dump ('tar xzf ' . $ archive ->getPathname () . ' -C ' . $ destination ->getPathname ());
42- var_dump (glob ($ destination ->getPathname () . '/* ' ));
43-
4440 unlink($archive->getPathname());
45- }
41+ }*/
4642
4743 return true ;
4844 }
You can’t perform that action at this time.
0 commit comments