Example #1
0
        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.Parent = current;
                    current = cache;
                }
            }

            return current;
        }
Example #2
0
 public CacheOperations(DokanOperations ope)
 {
     ope_ = ope;
     cache_ = new CacheEntry(null);
 }
Example #3
0
 public CacheOperations(DokanOperations ope)
 {
     ope_   = ope;
     cache_ = new CacheEntry(null);
 }
Example #4
0
 public CacheEntry(string name)
 {
     Name = name;
     Parent = this;
 }
Example #5
0
 public CacheEntry(string name)
 {
     Name   = name;
     Parent = this;
 }