Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Get all directory names under (1 level only) the root dir
params:
   root_dir   : the dir to look under
   ignored_dir: ignore the dir if it is in this list of dirnames 

        def get_all_dirs_under(root_dir, ignored_dirs = []):#pylint:disable=W0102
    """
       Get all directory names under (1 level only) the root dir
       params:
          root_dir   : the dir to look under
          ignored_dir: ignore the dir if it is in this list of dirnames 
    """
    return [ name for name in os.listdir(root_dir) \
             if ( os.path.isdir(os.path.join(root_dir, name)) \
                and (name not in ignored_dirs) ) ]
        


src/g/m/gmvault-HEAD/src/gmv/gmvault_db.py   gmvault(Download)
            # get all yy-mm dirs to list
            dirs = gmvault_utils.get_all_dirs_posterior_to(pivot_dir, \
                   gmvault_utils.get_all_dirs_under(self._db_dir, ignore_sub_dir))
 
            #create all iterators and chain them to keep the same interface

src/g/m/gmvault-1.8.1-beta/src/gmv/gmvault_db.py   gmvault(Download)
            # get all yy-mm dirs to list
            dirs = gmvault_utils.get_all_dirs_posterior_to(pivot_dir, \
                   gmvault_utils.get_all_dirs_under(self._db_dir, ignore_sub_dir))
 
            #create all iterators and chain them to keep the same interface