This commit is contained in:
2021-04-14 17:24:15 +08:00
parent d0d4b46fd3
commit 5db8f60a82
+2 -3
View File
@@ -277,11 +277,10 @@ class Loader extends BaseObject
$out_path = ''; $out_path = '';
foreach ($directory as $key => $value) { foreach ($directory as $key => $value) {
$out_path .= DIRECTORY_SEPARATOR . $value; $out_path .= DIRECTORY_SEPARATOR . $value;
if ($out_path === $output) { if ($out_path !== $output) {
break;
}
$tree = $this->getTree($tree, $value); $tree = $this->getTree($tree, $value);
} }
}
if ($tree instanceof FileTree) { if ($tree instanceof FileTree) {
$this->eachNode($tree->getChildes()); $this->eachNode($tree->getChildes());
$this->execute($tree->getFiles()); $this->execute($tree->getFiles());