예제 #1
0
파일: Cache.cs 프로젝트: Jektt/dokan-sshfs
        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;
        }
예제 #2
0
파일: Cache.cs 프로젝트: Jektt/dokan-sshfs
 public CacheOperations(IDokanOperations ope)
 {
     ope_ = ope;
     cache_ = new CacheEntry(null);
 }
예제 #3
0
파일: Cache.cs 프로젝트: suy/dokany
 public CacheOperations(DokanOperations ope)
 {
     ope_   = ope;
     cache_ = new CacheEntry(null);
 }
예제 #4
0
파일: Cache.cs 프로젝트: Jektt/dokan-sshfs
 public CacheEntry(string name)
 {
     Name = name;
     Parrent = this;
 }
예제 #5
0
파일: Cache.cs 프로젝트: suy/dokany
 public CacheEntry(string name)
 {
     Name    = name;
     Parrent = this;
 }