Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
return all files and dirs in a directory

        def dirwalk(a_dir, a_wildcards= '*'):
    """
       return all files and dirs in a directory
    """
    for root, _, files in os.walk(a_dir):
        for the_file in files:
            if fnmatch.fnmatch(the_file, a_wildcards):
                yield os.path.join(root, the_file)  
        


src/g/m/gmvault-HEAD/src/perf_tests.py   gmvault(Download)
        #print("\nFiles and dirs created.\n")
 
        the_iter = gmvault_utils.dirwalk(root_dir, a_wildcards= '*.meta')
        t1 = datetime.datetime.now()