Exemple #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;
        }
Exemple #2
0
 public CacheOperations(IDokanOperations ope)
 {
     ope_ = ope;
     cache_ = new CacheEntry(null);
 }
Exemple #3
0
 public CacheOperations(DokanOperations ope)
 {
     ope_   = ope;
     cache_ = new CacheEntry(null);
 }
Exemple #4
0
 public CacheEntry(string name)
 {
     Name = name;
     Parrent = this;
 }
Exemple #5
0
 public CacheEntry(string name)
 {
     Name    = name;
     Parrent = this;
 }