isFile()) { $filePath = $file->getPathname(); $appPath = str_replace($prefix, '', $filePath); $destPath = $destFileOrPath . $appPath; if ($onlyFiles) { if (is_file($destPath)) { if (md5_file($filePath) != md5_file($destPath)) { $list[] = $appPath; } } } else { $list[] = $appPath; } } } } } return $list; } }