

def recursive_glob(treeroot):
    'Browse folders hierarchy and yield files with\n    '
    min_size = ((config['file_min_size_mb'].get() * 1024) * 1024)

    def is_video_file_candidate(path):
        return (path.endswith(tuple(config['file_extensions'].get())) and (os.path.getsize(path) > min_size))
    if ((not os.path.isdir(treeroot)) and is_video_file_candidate(treeroot)):
        (yield treeroot)
    for (base, _, files) in os.walk(treeroot):
        for fpath in files:
            abs_path = os.path.join(base, fpath)
            if is_video_file_candidate(fpath):
                (yield abs_path)

dataset/ETHPy150Open Kraymer/flinck/flinck/__init__.py recursive_glob/VarMisuse@143/198 `abs_path`->`fpath`