utils/file-tester/lms_file_tester/validators/directory_validation.py
def validate_base_directory_structure(input_directory: str) -> List[str]:
    """
    Validates that a base directory contains the Users and Sections directories.

    Parameters
    ----------
    input_directory: str
        Base / parent directory containing files created by an LMS extractor.

    Returns
    -------
    List[str]
        List containing detailed error messages, if any.
    """
    is_missing = _check_for_directory(input_directory)
    if is_missing:
        return [is_missing]

    errors: List[str] = list()

    for d in [
        dr.get_users_directory(input_directory),
        dr.get_sections_directory(input_directory)
    ]:
        is_missing = _check_for_directory(d)
        if is_missing:
            errors.append(is_missing)

    return errors

    Validates that a base directory contains the Users and Sections directories.

    Parameters
    ----------
    input_directory: str
        Base / parent directory containing files created by an LMS extractor.

    Returns
    -------
    List[str]
        List containing detailed error messages, if any.
    
Validates that a base directory contains the Users and Sections directories.
Parameters

str
Base / parent directory containing files created by an LMS extractor.

Returns

List[str]
List containing detailed error messages, if any.
Validates that a base directory contains the Users and Sections directories . Parameters str Base / parent directory containing files created by an LMS extractor . Returns List [ str ] List containing detailed error messages if any .
def validate_base_directory_structure(input_directory: str) -> List[str]:
    is_missing = _check_for_directory(input_directory)
    if is_missing:
        return [is_missing]
    errors: List[str] = list()
    for d in [
        dr.get_users_directory(input_directory),
        dr.get_sections_directory(input_directory)
    ]:
        is_missing = _check_for_directory(d)
        if is_missing:
            errors.append(is_missing)
    return errors
def validate_base_directory_structure ( input_directory : str ) -> List [ str ] : is_missing = _check_for_directory ( input_directory ) if is_missing : return [ is_missing ] errors : List [ str ] = list ( ) for d in [ dr . get_users_directory ( input_directory ) , dr . get_sections_directory ( input_directory ) ] : is_missing = _check_for_directory ( d ) if is_missing : errors . append ( is_missing ) return errors
Validates that a base directory contains the Users and Sections directories.
Validates that a base directory contains the Users and Sections directories .
"""
    Validates that a base directory contains the Users and Sections directories.

    Parameters
    ----------
    input_directory: str
        Base / parent directory containing files created by an LMS extractor.

    Returns
    -------
    List[str]
        List containing detailed error messages, if any.
    """
input_directory
str