/// <summary> /// Creates a canonical blob path from a canonical tree path and a blob name. /// </summary> /// <param name="tree"></param> /// <param name="name"></param> public CanonicalBlobPath(CanonicalTreePath tree, string name) { this.Tree = tree; this.Name = name; this._asString = String.Concat(Tree.ToString(), Name); }
public TreeTreePath(TreeID rootTreeID, CanonicalTreePath path) { this.RootTreeID = rootTreeID; this.Path = path; }
/// <summary> /// Canonicalization normalizes an absolute path that may contain directory traversals like '.' or '..' /// to a path that cannot contain relative traversals and will always be a specific downward path from /// the root of the tree. /// </summary> /// <returns></returns> public CanonicalTreePath Canonicalize() { return(CanonicalTreePath.Canonicalize(this)); }