

def scan(top, verbose=False):
    packages = []
    for (root, subdirs, files) in os.walk(top, followlinks=True):
        if ('source.properties' in files):
            del files[:]
            package = parse(top, root)
            if package:
                packages.append(package)
                if verbose:
                    print('Found package "{:s}" in {:s}'.format(str(package), root))
    return packages

dataset/ETHPy150Open tadfisher/android-sdk-updater/sdk_updater/scan.py scan/VarMisuse@51/60 `subdirs`->`files`