Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 软连接下的文件复制粘贴失效 #3808

Closed
zhanba opened this issue Jun 26, 2024 · 1 comment
Closed

[BUG] 软连接下的文件复制粘贴失效 #3808

zhanba opened this issue Jun 26, 2024 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@zhanba
Copy link
Contributor

zhanba commented Jun 26, 2024

描述你的问题(Describe the bug)

复现路径(To Reproduce)

预期表现(Expected behavior)

环境信息(Environment)

  • OS: [e.g. macOS 11.2 Apple M1/Windows10/Windows11]
  • Browser: [e.g. chrome, safari, electron]
  • OpenSumi Version: [e.g. 2.13.0]
@zhanba zhanba added the 🐞 bug Something isn't working label Jun 26, 2024
@erha19
Copy link
Member

erha19 commented Jul 3, 2024

@zhanba 目前这块逻辑相关的代码位置在:

public pasteFile = async (to: URI) => {

这里核心问题是出在文件树的组织是通过 path 进行解析的,而软链文件的 uri 路径可能会与 path 存在冲突情况,故这里可能需要针对所有软链文件构建对应于 Tree Path 的 Map 进行处理。

如何判断一个节点是否是软链文件,可以通过文件的 filestate 中的 isSymbolicLink 进行判断。

可以尝试解决一下这个问题,或者晚点我看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants