/// <summary> /// Creates a symbolic link to this directory at the specified path. /// </summary> /// <param name="directoryInfo">the source directory for the symbolic link.</param> /// <param name="path">the path of the symbolic link.</param> public static void CreateSymbolicLink(this DirectoryInfo directoryInfo, string path) { SymbolicLink.CreateDirectoryLink(path, directoryInfo.FullName); }
/// <summary> /// Creates a symbolic link to this directory at the specified path. /// </summary> /// <param name="directoryInfo">the source directory 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 DirectoryInfo directoryInfo, string path, bool makeTargetPathRelative) { SymbolicLink.CreateDirectoryLink(path, directoryInfo.FullName, makeTargetPathRelative); }