import pathlib


def _dir_list(dir_path):
    """
    This function gets the dir entries in the dir_path

    :param: dir_path - path to directory
    :return: a list of path objects
    """

    path_list = pathlib.Path(dir_path).glob('**/*')
    return path_list