mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-01 01:26:19 +00:00
don't fail if the dir doesn't exist
This commit is contained in:
parent
0181f71209
commit
20ff0259d9
1 changed files with 7 additions and 4 deletions
|
@ -251,6 +251,9 @@ class UpgradeShell extends Shell {
|
||||||
*/
|
*/
|
||||||
protected function _findFiles($extensions = '') {
|
protected function _findFiles($extensions = '') {
|
||||||
foreach ($this->_paths as $path) {
|
foreach ($this->_paths as $path) {
|
||||||
|
if (!is_dir($path)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$files = array();
|
$files = array();
|
||||||
$Iterator = new RegexIterator(
|
$Iterator = new RegexIterator(
|
||||||
new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)),
|
new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)),
|
||||||
|
|
Loading…
Add table
Reference in a new issue