Skip to content

Commit

Permalink
fix: optimize the storage/plugins reading logic (nocobase#6186)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenos authored Feb 10, 2025
1 parent 6f5515a commit ab5e9c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/core/utils/plugin-symlink.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ async function getStoragePluginNames(target) {
const items = await readdir(target);
for (const item of items) {
if (item.startsWith('@')) {
const children = await getStoragePluginNames(resolve(target, item));
const dirPath = resolve(target, item);
const s = await stat(dirPath);
if (!s.isDirectory()) {
continue;
}
const children = await getStoragePluginNames(dirPath);
plugins.push(
...children.map((child) => {
return `${item}/${child}`;
Expand Down

0 comments on commit ab5e9c0

Please sign in to comment.