added overwrite option to extractto()

This commit is contained in:
Micha Espey 2019-01-18 12:49:11 +01:00
parent cf948b6ed8
commit 749e7d56eb
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
dist/

View File

@ -238,7 +238,7 @@ if (!empty($argv[1])) {
// $data->extractTo($phpbb_root_path, 'phpBB3'); // $data->extractTo($phpbb_root_path, 'phpBB3');
// does not work due to php bug: // does not work due to php bug:
// https://bugs.php.net/bug.php?id=54289 // https://bugs.php.net/bug.php?id=54289
$data->extractTo($phpbb_root_path); $data->extractTo($phpbb_root_path, null, true);
$fromDir = $phpbb_root_path . 'phpBB3/'; $fromDir = $phpbb_root_path . 'phpBB3/';
$toDir = $phpbb_root_path; $toDir = $phpbb_root_path;
@ -332,4 +332,4 @@ if (!empty($argv[1])) {
// echo "php $argv[0] --reenable-styles", PHP_EOL; // echo "php $argv[0] --reenable-styles", PHP_EOL;
// really? // really?
exit(0); exit(0);
} }