doxyth/verify.py
def verify_lang_directory(path, no_print=False):
    """
    ### &doc_id verify:lang_directory

    Verifies a language directory, file_name per file_name.

    Args:
        path: The path to the language directory
        no_print: Whether we should forbid this function to print. Simply passed to verify_file, does not affect this
        function directly.
    """

    final = []
    for file in [f for f in os.listdir(path) if isfile(join(path, f))]:
        if file.endswith(".dthdoc"):
            res = verify_file(f"{path}/{file}", False, no_print)

            for new in res:
                if new in final:
                    print(f"ID {new} found multiple times for the same language.")
                    exit()

            final.extend(res)
    return final

    ### &doc_id verify:lang_directory

    Verifies a language directory, file_name per file_name.

    Args:
        path: The path to the language directory
        no_print: Whether we should forbid this function to print. Simply passed to verify_file, does not affect this
        function directly.
    


The path to the language directory
no_print: Whether we should forbid this function to print. Simply passed to verify_file, does not affect this
function directly.
The path to the language directory no_print : Whether we should forbid this function to print . Simply passed to verify_file does not affect this function directly .
def verify_lang_directory(path, no_print=False):
    final = []
    for file in [f for f in os.listdir(path) if isfile(join(path, f))]:
        if file.endswith(".dthdoc"):
            res = verify_file(f"{path}/{file}", False, no_print)
            for new in res:
                if new in final:
                    print(f"ID {new} found multiple times for the same language.")
                    exit()
            final.extend(res)
    return final
def verify_lang_directory ( path , no_print = False ) : final = [ ] for file in [ f for f in os . listdir ( path ) if isfile ( join ( path , f ) ) ] : if file . endswith ( ".dthdoc" ) : res = verify_file ( f"{path}/{file}" , False , no_print ) for new in res : if new in final : print ( f"ID {new} found multiple times for the same language." ) exit ( ) final . extend ( res ) return final
&doc_id verify:lang_directory
Verifies a language directory, file_name per file_name.
&doc_id verify : lang_directory Verifies a language directory file_name per file_name .
"""
    ### &doc_id verify:lang_directory

    Verifies a language directory, file_name per file_name.

    Args:
        path: The path to the language directory
        no_print: Whether we should forbid this function to print. Simply passed to verify_file, does not affect this
        function directly.
    """
path
no_print