PathOfBuildingCommunity / PathOfBuildingCommunity/PathOfBuilding

Deleting non-empty folder results in bug

Đang mở
#3,754 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

bug
Ngôn ngữ chính
Lua
Star
5.4k
Fork
2.4k
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
26

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Báo cáo không nêu tên tệp hay test nào. Trước tiên, hãy tái hiện workflow của folder trong ứng dụng desktop, sau đó tìm code xử lý việc xóa folder và build. Hoàn thành khi việc xóa một folder không rỗng tuân theo hành vi dự kiến, và việc xóa folder đã được làm rỗng không báo lỗi quyền hoặc yêu cầu khởi động lại ứng dụng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
lua
Lĩnh vực
desktop
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.