PCL-CE icon indicating copy to clipboard operation
PCL-CE copied to clipboard

[C#]: 更新资源时自动把旧资源放回收站

Open minecraft-DYL opened this issue 3 months ago • 5 comments

检查项 / Checklist

  • [x] 我已在 Issues 页面 中搜索,确认了这一建议未在社区版被提交过 / I have searched the Issues page and confirmed that this suggestion has not been submitted to the Community Edition yet.
  • [ ] 我确认只是全部选中而没有仔细确认就直接提交了这个 Issue,并且同意这个 Issue 可以直接被关闭 / I confirm that I checked all boxes without carefully reading them, and agree that this issue may be closed directly.
  • [x] 我确认我所描述的改进是现实的、有理有据的,而不是我临时起意的 / I confirm that the improvement I describe is realistic, reasonable, and well-justified, rather than something I came up with on a whim.
  • [x] 我已知悉社区不对这类 Issue 的完成时间作出任何保证,并有足够的耐心等待社区开发者的处理,同时已知悉如果我作出催促、质问或类似的举动,这个 Issue 可能会被直接关闭 / I understand that the community does not guarantee any completion time for this type of issue, and I am willing to wait patiently for the community developers' review and handling. I also understand that excessive urging, demanding, or similar behavior may result in this issue being closed.

描述 / Description

更新资源时自动把旧资源放回收站

原因 / Reason

No response

minecraft-DYL avatar Aug 26 '26 14:08 minecraft-DYL

请使用能清晰概述内容的标题,玩笑内容应当放在最次要位置,避免影响关键信息的捕捉

qiMengStars avatar Aug 26 '26 14:08 qiMengStars

请告诉“更新资源”具体指的是什么资源,我觉得这个优化可以进行

bgzsdzzl avatar Nov 02 '26 15:11 bgzsdzzl

指的更新Mod,资源包等资源自动放到回收站,对齐PCL

minecraft-DYL avatar Nov 03 '26 10:11 minecraft-DYL

感谢你的回复,我正在解决这个issue

bgzsdzzl avatar Nov 03 '26 10:11 bgzsdzzl

这个问题在1.15.1版本中已无法复现,更新时所调用的删除方法为icrosoft.VisualBasic.FileIO.FileSystem.DeleteFile(..., RecycleOption.SendToRecycleBin),此方法会将其移动到回收站,永久删除方法(File.Delete)仅在临时缓存清理和Shift+删除中使用,这是设计中的正常行为。请您尝试在最新版本复现,如果无法复现,也许可以关闭此issue。请您确认该问题是否在最新版本仍存在,谢谢

bgzsdzzl avatar Nov 03 '26 11:11 bgzsdzzl