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.Parrent = current;
                    current = cache;
                }
            }

            return current;
        }
Example #2
0
 public CacheOperations(IDokanOperations ope)
 {
     ope_ = ope;
     cache_ = new CacheEntry(null);
 }
Example #3
0
File: Cache.cs Project: suy/dokany
 public CacheOperations(DokanOperations ope)
 {
     ope_   = ope;
     cache_ = new CacheEntry(null);
 }
Example #4
0
 public CacheEntry(string name)
 {
     Name = name;
     Parrent = this;
 }
Example #5
0
File: Cache.cs Project: suy/dokany
 public CacheEntry(string name)
 {
     Name    = name;
     Parrent = this;
 }