def all_files(*tops):
    """Lists all files in the given directories."""
    for top in tops:
        for dirname, _, filenames in os.walk(top):
            for f in filenames:
                path = os.path.join(dirname, f)
                if os.path.isfile(path):
                    yield path
Lists all files in the given directories.
recipes/Python/551777_Accurately_find_duplicate_files/recipe-551777.py