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.
精彩评论