gpt4 book ai didi

c# - 系统.IO.IOException : The symbolic link cannot be followed because its type is disabled

转载 作者:行者123 更新时间:2023-11-30 16:37:00 28 4
gpt4 key购买 nike

这到底是什么意思?我正在做这样的事情:

File.Copy(@"\\foo\bar\baz.txt", @"c:\test\baz.txt");

除了笼统的术语外,MSDN 没有描述这个异常,谷歌搜索只会产生错误代码表。

我已确认源文件存在,并且 99% 确定我有权将文件复制到目标位置。

最佳答案

查看这篇文章以获取有关在 .Net 中使用符号链接(symbolic link)的一些信息:“Manipulating NTFS Junction Points in .NET”。

根据这篇文章:

"In particular the .NET libraries does not include any functionality for creating or querying properties of Junction Points"

但是有一种方法可以实际获取符号链接(symbolic link)的目标,然后您就可以使用 File.Copy 了。

关于c# - 系统.IO.IOException : The symbolic link cannot be followed because its type is disabled,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/248118/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com