开发者

How to identify if a directory is a symlink pointing to a network location in .NET

In .NET, what is the best way to identify if a directory is a symlink pointing to a network location?

To determine if it's a symbolic开发者_JAVA技巧 link OR an NTFS junction point we can use:

System.IO.File.GetAttributes(folderName).HasFlags(FileAttributes.ReparsePoint);

But that's not precise enough as it returns true for junction points as well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜