This commit is contained in:
2021-04-14 18:24:46 +08:00
parent e8282b8862
commit 872faee642
+2
View File
@@ -275,6 +275,7 @@ class Loader extends BaseObject
foreach ($directory as $key => $value) { foreach ($directory as $key => $value) {
$_tmp .= DIRECTORY_SEPARATOR . $value; $_tmp .= DIRECTORY_SEPARATOR . $value;
if (!empty($outPath) && str_contains($_tmp, $outPath)) { if (!empty($outPath) && str_contains($_tmp, $outPath)) {
var_dump($_tmp, $outPath);
break; break;
} }
$tree = $this->getTree($tree, $value); $tree = $this->getTree($tree, $value);
@@ -325,6 +326,7 @@ class Loader extends BaseObject
foreach ($nodes as $node) { foreach ($nodes as $node) {
$this->execute($node->getFiles()); $this->execute($node->getFiles());
if (!empty($outPaht) && str_contains($node->getDirPath(), $outPath)) { if (!empty($outPaht) && str_contains($node->getDirPath(), $outPath)) {
var_dump($node->getDirPath(), $outPath);
continue; continue;
} }
$childes = $node->getChildes(); $childes = $node->getChildes();