public static TryCreate ( string path, |
||
path | string | Full path of the reparse point |
link | ||
return | bool |
/// <summary> /// Return true if the path points to a junction. These are distinct /// from symlinks. /// </summary> /// <returns></returns> public bool IsJunction() { ReparsePoint rep; return(ReparsePoint.TryCreate(PurePath.ToString(), out rep) && rep.Tag == ReparsePoint.TagType.JunctionPoint); }
/// <inheritdoc/> public override bool IsSymlink() { ReparsePoint rep; return(ReparsePoint.TryCreate(PurePath.ToString(), out rep) && rep.Tag == ReparsePoint.TagType.SymbolicLink); }