Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Overriding the files array, so it will not try to perform actions on …

…files that no longer exists.
  • Loading branch information...
commit edbe60e965ee03c208e8157919e210932d39abad 1 parent 4d1f41d
@renan renan authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/Cake/Console/Command/UpgradeShell.php
View
5 lib/Cake/Console/Command/UpgradeShell.php
@@ -592,7 +592,7 @@ protected function _findFiles($extensions = '') {
if (!is_dir($path)) {
continue;
}
- $files = array();
+ $this->_files = array();
$Iterator = new RegexIterator(
new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)),
'/^.+\.(' . $extensions . ')$/i',
@@ -600,10 +600,9 @@ protected function _findFiles($extensions = '') {
);
foreach ($Iterator as $file) {
if ($file->isFile()) {
- $files[] = $file->getPathname();
+ $this->_files[] = $file->getPathname();
}
}
- $this->_files = array_merge($this->_files, $files);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.