import pathlib


def list_files(directory):
    """Returns all the files in a directory
    """
    return [file for file in pathlib.Path(directory).iterdir()
            if file.is_file() and not file.name.startswith('.')]