Skip to content

Commit

Permalink
Add tests for backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed May 1, 2024
1 parent 791e7d3 commit 2935c36
Show file tree
Hide file tree
Showing 5 changed files with 112,916 additions and 10 deletions.
11 changes: 1 addition & 10 deletions classes/UpgradeTools/FilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,7 @@ public function listFilesInDir($dir, $way, $listDirectories = false)
FilesystemIterator::SKIP_DOTS | FilesystemIterator::KEY_AS_FILENAME | FilesystemIterator::CURRENT_AS_PATHNAME | FilesystemIterator::UNIX_PATHS
);
$filter = new RecursiveCallbackFilterIterator($directory, function ($current, $key, $iterator) use ($way, $dir) {
if ($this->isFileSkipped(
$key,
$current,
$way,
$dir
)) {
return false;
}

return true;
return !$this->isFileSkipped($key, $current, $way, $dir);
});
$iterator = new \RecursiveIteratorIterator(
$filter,
Expand Down

0 comments on commit 2935c36

Please sign in to comment.