Skip to content

Commit ab5e9c0

Browse files
authored
fix: optimize the storage/plugins reading logic (nocobase#6186)
1 parent 6f5515a commit ab5e9c0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/core/utils/plugin-symlink.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ async function getStoragePluginNames(target) {
66
const items = await readdir(target);
77
for (const item of items) {
88
if (item.startsWith('@')) {
9-
const children = await getStoragePluginNames(resolve(target, item));
9+
const dirPath = resolve(target, item);
10+
const s = await stat(dirPath);
11+
if (!s.isDirectory()) {
12+
continue;
13+
}
14+
const children = await getStoragePluginNames(dirPath);
1015
plugins.push(
1116
...children.map((child) => {
1217
return `${item}/${child}`;

0 commit comments

Comments
 (0)