public CacheEntry Lookup(string fullname) { string[] names = fullname.Split('\\'); CacheEntry current = this; CacheEntry child = null; foreach (string entry in names) { if (current.Children == null) current.Children = new Dictionary<string, CacheEntry>(); if (current.Children.TryGetValue(entry, out child)) { current = child; } else { CacheEntry cache = new CacheEntry(entry); current.Children[entry] = cache; cache.Parrent = current; current = cache; } } return current; }
public CacheOperations(IDokanOperations ope) { ope_ = ope; cache_ = new CacheEntry(null); }
public CacheOperations(DokanOperations ope) { ope_ = ope; cache_ = new CacheEntry(null); }
public CacheEntry(string name) { Name = name; Parrent = this; }