@@ -26,7 +26,7 @@ export async function getFolders(name: string, isSvg?: boolean) {
const list = [];
if (files.list) {
for (const f of files.list) {
- if (f.indexOf(item) >= 0) {
+ if (f.indexOf('/'+item+'/') >= 0) {
const temp = f.split('/');
const name = filename(temp[temp.length - 1]);
if (!name) {