/// <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);
 }
Example #2
0
 public TreeTreePath(TreeID rootTreeID, CanonicalTreePath path)
 {
     this.RootTreeID = rootTreeID;
     this.Path       = path;
 }
Example #3
0
 /// <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));
 }