mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
fix: optimize the storage/plugins reading logic (#6186)
This commit is contained in:
parent
6f5515abbc
commit
ab5e9c09f6
@ -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}`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user