Esempio n. 1
0
 /// <summary>
 /// Determines whether this file system entry is a symbolic link.
 /// </summary>
 /// <param name="fsi">The directory or file in question.</param>
 /// <param name="finalPathName">The final target path name if the entry is a symbolic link or <c>null</c> otherwise</param>
 /// <returns><code>true</code> if the entry is a symbolic link, <code>false</code> otherwise.</returns>
 public static bool IsSymbolicLink(this FileSystemInfo fsi, out string finalPathName)
 {
     return(SymbolicLink.IsSymbolicLink(fsi, out finalPathName));
 }
Esempio n. 2
0
 /// <summary>
 /// Determines whether this file system entry is a symbolic link.
 /// </summary>
 /// <param name="fsi">The directory or file in question.</param>
 /// <returns><code>true</code> if the entry is a symbolic link, <code>false</code> otherwise.</returns>
 public static bool IsSymbolicLink(this FileSystemInfo fsi)
 {
     return(SymbolicLink.IsSymbolicLink(fsi, out _));
 }