/// <summary> /// Gets the actual path. /// </summary> /// <param name="linkPath"> The link path. </param> /// <returns> </returns> /// <remarks> /// </remarks> public string GetActualPath(string linkPath) { linkPath = linkPath.GetFullPath(); if (File.Exists(linkPath)) { string result; GetAlternateStreamData(linkPath, out result); return(result); } if (Directory.Exists(linkPath)) { return(ReparsePoint.GetActualPath(linkPath)); } return(linkPath); }
public string GetActualPath(string linkPath) { linkPath = linkPath.GetFullPath(); return(ReparsePoint.GetActualPath(linkPath)); }