MaixVision 删除 PC 文件夹无确认、不进回收站、无撤销,导致大量数据永久丢失

未关闭
#220 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
electron, python
领域
desktop, security

调研方向

Start by locating MaixVision’s file panel deletion handler and tracing how it distinguishes PC paths from device paths; the report identifies recursive rmdir as the behavior to investigate. Review the project’s deletion tests or add coverage for confirmation, trash handling, project-root limits, and batch deletion. Done means PC deletions are recoverable and scoped to the project, with clear confirmation and undo behavior.

由索引模型根据 Issue 内容生成。

描述

环境

  • Windows 11 Home China (10.0.26200)
  • MaixVision 1.2.3(D:\maixVision)
  • C: 为 BitLocker 加密的 NVMe SSD

问题

MaixVision 文件面板删除电脑本地文件夹时直接 rmdir 递归永久删除:

  • 没有确认对话框
  • 不进 Windows 回收站
  • 没有撤销
  • UI 未区分“设备文件系统”和“电脑文件系统”

证据

%APPDATA%\maixvision\logs\main.log:
[2026-11-04 00:37:13.666] [error] (main) [delete file]: Error: EBUSY: resource busy or locked, rmdir 'C:\Users<user>\Desktop\SmartCar'
Windows USN 日志同一时刻有 1,600+ 条 FILE_DELETE,回收站无对应条目。

影响

桌面真实资料被永久删除;Windows 11 + SSD TRIM + BitLocker 导致无法恢复。

期望

  1. 删除前二次确认;
  2. 删除电脑文件走系统回收站(Electron shell.trashItem / fs.trashItem);
  3. 支持撤销;
  4. UI 明确区分 PC 文件系统与设备文件系统;
  5. 限制只能删除当前项目根目录内的文件;
  6. 批量删除显示待删清单和数量。
主要语言
Python
星标
872
派生
129
平均合并
2 小时 5 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sipeed/MaixPy 的其他 Issue

查看 sipeed/MaixPy 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。