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

@@ -186,6 +186,9 @@ class FileService {
const files = fs.readdirSync(targetDir);
for (const name of files) {
if (name.startsWith('.')) continue;
if (name.startsWith('$')) continue;
try {
const itemPath = path.join(targetDir, name);
const stat = fs.statSync(itemPath);