This commit is contained in:
2021-04-14 18:26:50 +08:00
parent 710d49b2c8
commit 4d71c5036b
+2 -1
View File
@@ -320,13 +320,14 @@ class Loader extends BaseObject
/** /**
* @param FileTree[] $nodes * @param FileTree[] $nodes
* @param string|null $outPath * @param string|null $outPath
* @throws Exception
*/ */
private function eachNode(array $nodes, ?string $outPath = '') private function eachNode(array $nodes, ?string $outPath = '')
{ {
foreach ($nodes as $node) { foreach ($nodes as $node) {
$this->execute($node->getFiles()); $this->execute($node->getFiles());
$this->addError($node->getDirPath() . '-->' . $outPath);
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();