from pathlib import Path


def list_all_files(directory):
    """
    return list of file path inside folder

    Ignores symlinks
    """
    file_list = []  # A list for storing files existing in directories
    dir = Path(directory)
    for x in dir.iterdir():
        if x.is_symlink():
            continue
        elif x.is_file():
            file_list.append(x)
        elif x.is_dir() and not x.name.startswith("."):
            file_list.extend(list_all_files(dir / x))

    return file_list