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

Open
#220 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
electron, python
Domain
desktop, security

Research direction

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.

Written by the indexing model from the issue text.

Description

环境

  • 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. 批量删除显示待删清单和数量。
Dominant language
Python
Stars
872
Forks
129
Avg merge
2h 5m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sipeed/MaixPy

All issues in sipeed/MaixPy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.