fix(remote): 修复文件传输返回按钮不刷新列表的问题,过滤回收站等系统文件

This commit is contained in:
2026-03-10 19:09:39 +08:00
parent 2503d8be64
commit 7a39fc3bce
4 changed files with 18 additions and 16 deletions

View File

@@ -99,7 +99,7 @@ router.get(
}),
)
const visibleItems = items.filter((i): i is FileItemDTO => i !== null && !i.name.startsWith('.'))
const visibleItems = items.filter((i): i is FileItemDTO => i !== null && !i.name.startsWith('.') && !i.name.startsWith('$'))
visibleItems.sort((a, b) => {
if (a.type === b.type) return a.name.localeCompare(b.name)
return a.type === 'dir' ? -1 : 1
@@ -173,7 +173,7 @@ router.get(
}),
)
const visibleItems = items.filter((i): i is FileItemDTO => i !== null && !i.name.startsWith('.'))
const visibleItems = items.filter((i): i is FileItemDTO => i !== null && !i.name.startsWith('.') && !i.name.startsWith('$'))
visibleItems.sort((a, b) => {
if (a.type === b.type) return a.name.localeCompare(b.name)
return a.type === 'dir' ? -1 : 1