OpenList icon indicating copy to clipboard operation
OpenList copied to clipboard

[BUG] 跨盘移动文件夹时,移动完成后,源文件夹没有删除

Open sevxn007 opened this issue 1 year ago • 3 comments

Please confirm the following

  • [x] I have read and agree to AGPL-3.0 Section 15 . The program is provided "as is" without any warranties; you bear all risks of using it.

  • [x] I have read and agree to AGPL-3.0 Section 16 . The copyright holders and distributors are not liable for any damages resulting from the use or inability to use the program.

  • [x] I confirm my description is clear, polite, helps developers quickly locate the issue, and complies with community rules.

  • [x] I have read the OpenList documentation.

  • [x] I confirm there are no duplicate issues or discussions.

  • [x] I confirm this is an OpenList issue, not caused by other reasons (such as network, dependencies, or operation).

  • [x] I believe this issue must be handled by OpenList and not by a third party.

  • [x] I confirm this issue is not fixed in the latest version.

OpenList Version (required)

v4.0.7

Storage Driver Used (required)

移动至115open时出现

Bug Description (required)

由于移动操作,需要校验目标目录下的文件存在才会删除源文件夹,但是类型115open,在上传文件后目录缓存没有更新,导致校验失败,所以删除失败

Configuration File Content (required)

默认

Logs (optional)

No response

Reproduction Link (optional)

No response

sevxn007 avatar Jul 03 '25 05:07 sevxn007

感谢您联系OpenList。我们会尽快回复您。 Thanks for contacting OpenList. We will reply to you as soon as possible.

github-actions[bot] avatar Jul 03 '25 05:07 github-actions[bot]

相关代码 https://github.com/OpenListTeam/OpenList/blob/8eb2d600c722c926a24803bf51345e0cbd93ff5f/internal/fs/move.go#L392-L402

https://github.com/OpenListTeam/OpenList/blob/8eb2d600c722c926a24803bf51345e0cbd93ff5f/internal/op/fs.go#L571-L575

sevxn007 avatar Jul 03 '25 05:07 sevxn007

建议移动完成后加入刷新缓存的操作。

SenkjM avatar Jul 03 '25 06:07 SenkjM