This commit is contained in:
2021-04-14 17:32:17 +08:00
parent 6a989011d4
commit 7222bf6ae6
+3 -2
View File
@@ -279,9 +279,10 @@ class Loader extends BaseObject
foreach ($directory as $key => $value) { foreach ($directory as $key => $value) {
$out_path .= DIRECTORY_SEPARATOR . $value; $out_path .= DIRECTORY_SEPARATOR . $value;
$this->error($filePath . '->' . $out_path); $this->error($filePath . '->' . $out_path);
if ($out_path !== $output) { if (str_contains($filePath, $output)) {
$tree = $this->getTree($tree, $value); continue;
} }
$tree = $this->getTree($tree, $value);
} }
if ($tree instanceof FileTree) { if ($tree instanceof FileTree) {
$this->eachNode($tree->getChildes()); $this->eachNode($tree->getChildes());