/// <summary> /// Creates a symbolic link to this file at the specified path. /// </summary> /// <param name="it">the source file for the symbolic link.</param> /// <param name="path">the path of the symbolic link.</param> public static void CreateSymbolicLink(this FileInfo it, string path) { SymbolicLink.CreateFileLink(path, it.FullName); }
/// <summary> /// Creates a symbolic link to this file at the specified path. /// </summary> /// <param name="it">the source file for the symbolic link.</param> /// <param name="path">the path of the symbolic link.</param> /// <param name="makeTargetPathRelative">whether the target should be made relative to the symbolic link. Default <c>false</c>.</param> public static void CreateSymbolicLink(this FileInfo it, string path, bool makeTargetPathRelative) { SymbolicLink.CreateFileLink(path, it.FullName, makeTargetPathRelative); }