import pathlib


def search(d):
    """Search directory for files."""
    p = pathlib.Path(d)
    print(f"Searching {p.as_posix()}")
    directories = [dir_ for dir_ in p.iterdir() if dir_.is_dir()]
    files = [file_.as_posix() for file_ in p.iterdir()
             if file_.is_file()]
    for dir_ in directories:
        files.extend(search(dir_))
    return files