移动的符号链接从 Windows 资源管理器中消失 [英] moved symlink disappears from Windows Explorer

查看:38
本文介绍了移动的符号链接从 Windows 资源管理器中消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用自定义脚本将其导出到另一个 SCM 系统之前,我想更改 ClearCase 中源代码的结构.由于原始代码可能仍然略有变化,我通过将现有文件夹的内容符号链接到新结构中来做到这一点.

I'd like to change the structure of our source code inside ClearCase before using a custom script to export that to another SCM system. As the original code may still change slightly, I did this by symlinking the contents of the existing folders into the new structure.

现在所需的文件夹结构已更改,我需要移动这些符号链接(或重新开始整个过程​​,如果没有人可以帮助我,这是我的后备策略).但是在移动任何符号链接后(顺便说一下,在动态视图中的同一个 VOB 内),Windows 资源管理器不会在新位置显示元素.ClearCase Explorer 确实按预期在新位置显示它们并标记为符号链接;但他们似乎失去了目标,因为上下文菜单中的变形到目标"选项是灰色的.

Now the desired folder structure has changed and I need to move those symlinks (or start the whole process over, which is my fall-back strategy if no one can help me here). But after moving any symlinks (inside the same VOB in a dynamic view by the way), Windows Explorer does not show the elements at the new position. ClearCase Explorer does show them as expected, in the new location and tagged as a symbolic link; but they appearantly lost their target, as the option "Warp to target" in the context menu is greyed out.

重新启动 PC 和卸载/重新安装 VOB 都没有改善情况.

Restarting the PC and un-/remounting the VOB all did nothing to better the situaton.

谁能告诉我这是怎么发生的,如何防止这种情况再次发生,以及如何恢复看似断开的链接?

Can anyone tell me how this could happen, how to prevent this from happening again and possibly how I can restore the appearantly broken links?

推荐答案

如果目标本身发生了变化,看起来比 VOB 符号链接 失去了它们的目标,并且Warp to Symlink Target" 上下文菜单不起作用.

If the target has itself changed, it seems normal than the VOB symlinks loses their target, and that the "Warp to Symlink Target" contextual menu doesn't work.

检查您的符号链接(此处使用 在动态视图中) 是软链接.
但是如果移动链接它的目标改变,我认为删除并重新创建符号链接会更快.

Check that your symlink (used here in a dynamic view) is a soft link.
But if move the link and its target change, I think it is quicker to remove and recreate the symlink.

实际上,OP SvenS 在评论中提到:

Actually, the OP SvenS mentions in the comments:

符号链接的目标路径可以相对于链接存储.
似乎是这种情况,因为我只是将它们移回了以前的位置,并且目标重新出现在 Windows 资源管理器中.

the target path of symlinks may be stored relative to the link.
This seems to be the case, as I just moved them back to their previous location and the targets reappeared in windows Explorer.

这篇关于移动的符号链接从 Windows 资源管理器中消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆