Ejemplo n.º 1
0
 def list(self, pkg=None, recursive=False, top=True):
     for d in self._list_files(pkg, top):
         p = fname_to_pkg(d)
         yield p
         if recursive:
             for child in self.list(p, recursive=recursive, top=False):
                 yield child
Ejemplo n.º 2
0
 def list(self, pkg=None, recursive=False, top=True):
     for d in self._list_files(pkg, top):
         p = fname_to_pkg(d)
         if os.path.exists(self.get_package_directory(d)): yield p
         if recursive:
             for child in self.list(p, recursive=recursive, top=False):
                 yield child
Ejemplo n.º 3
0
 def list(self, pkg=None, recursive=False, top=True):
     for d in self._list_files(pkg, top):
         p = fname_to_pkg(d)
         yield p
         if recursive:
             for child in self.list(p, recursive=recursive, top=False):
                 yield child