PathOfBuildingCommunity / PathOfBuildingCommunity/PathOfBuilding

Deleting non-empty folder results in bug

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

还没有人认领这个 Issue。

bug
主要语言
Lua
星标
5.4k
派生
2.4k
平均合并
1 天 12 小时
30 天内合并 PR
26

描述

Check version
  • I'm running the latest version of Path of Building and I've verified this by checking the changelog
Check for duplicates
  • I've checked for duplicate issues by using the search function of the issue tracker
What is the expected behaviour/value?

Deleting properly folder

What is the actual behaviour/value?

Trying to delete folder which contains something (there is no possibility to delete non-empty folder) getting error The folder is not empty. After deleting build inside and trying to delete folder (now it is empty) again it gives Couldn't delete $PATH: Permission Denied. After restart PoB folder is gone.
Knowing Windows issues I tried to run PoB as Administrator but nothing changed.

How to reproduce the issue
  1. Create a new folder
  2. Create and save any build inside folder
  3. Try to delete folder
  4. Get The folder is not empty message.
  5. Delete build from folder
  6. Try to delete empty folder
  7. Get Couldn't delete $PATH: Permission Denied error.
  8. Restart PoB
  9. Folder is indeed deleted
Build code
Any build (even empty).
Screenshots

image

image

贡献指南

打开贡献指南

从这里开始

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

调研方向

报告中没有提到文件或测试。首先在桌面应用中复现文件夹工作流,然后定位处理文件夹和构建删除的代码。完成的标准是:删除非空文件夹时遵循预期行为,并且删除已清空的文件夹不会报告权限错误,也不需要重启应用。

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

评估

技术栈
lua
领域
desktop
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

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