def METHOD_NAME(directory: str, extension_with_dot: str) -> List[str]:
    all_files = []
    abs = os.path.abspath(directory)
    relative = get_file_name(abs)
    for root, directories, files in os.walk(directory):
        for file in files:
            if file.endswith(extension_with_dot):
                file_text = os.path.join(root, file)
                file_text = file_text.replace('./', relative + '/')
                all_files.append(file_text)
    all_files.sort()
    return all_files