예제 #1
0
 private static bool IsDescendantTo(this FlatEntry possibleDescendant, FlatEntry possibleAncestor)
 => possibleDescendant.Path.StartsWith(possibleAncestor.Path + "\\");
예제 #2
0
 private static int Depth(this FlatEntry x) => x.Path.Count(c => c == '\\');
예제 #3
0
 private static string EncodeSingleEntry(FlatEntry entry)
 => EncodeNodeName(entry.Path) + EncodeChildren(entry.ChildData);