예제 #1
0
파일: fusefs.py 프로젝트: zidz/bhindex
    def readdir(self):
        children = dict()
        for obj in self.objs:
            for name, obj in scan(obj):
                if not hasValidStatus(obj):
                    continue
                children.setdefault(name, []).append(obj)

        for name, objs in children.iteritems():
            inode = map_objects(objs)
            if inode:
                yield name, inode
예제 #2
0
파일: fusefs.py 프로젝트: zidz/bhindex
 def is_available(self):
     return hasValidStatus(self.objs)