src/dirbs/cli/catalog.py
def _get_extra_attributes(input_file, file_type, logger):
    """
    Function to perform additional checks if they are defined for the file_type.

    :param input_file: input file name
    :param file_type: type of the file
    :param logger: dirbs logger instance
    :return: dict or None
    """
    if file_type == 'operator':
        try:
            perform_operator_filename_checks(input_file)
            filename_check = True
        except exceptions.FilenameCheckRawException:
            filename_check = False
            logger.warning('Filename check failed on file {0} with error: {1}'.format(input_file, filename_check))
        return {'filename_check': filename_check}
    return None

    Function to perform additional checks if they are defined for the file_type.

    :param input_file: input file name
    :param file_type: type of the file
    :param logger: dirbs logger instance
    :return: dict or None
    
Function to perform additional checks if they are defined for the file_type.
Function to perform additional checks if they are defined for the file_type .
def _get_extra_attributes(input_file, file_type, logger):
    if file_type == 'operator':
        try:
            perform_operator_filename_checks(input_file)
            filename_check = True
        except exceptions.FilenameCheckRawException:
            filename_check = False
            logger.warning('Filename check failed on file {0} with error: {1}'.format(input_file, filename_check))
        return {'filename_check': filename_check}
    return None
def _get_extra_attributes ( input_file , file_type , logger ) : if file_type == 'operator' : try : perform_operator_filename_checks ( input_file ) filename_check = True except exceptions . FilenameCheckRawException : filename_check = False logger . warning ( 'Filename check failed on file {0} with error: {1}' . format ( input_file , filename_check ) ) return { 'filename_check' : filename_check } return None
Function to perform additional checks if they are defined for the file_type.
Function to perform additional checks if they are defined for the file_type .
"""
    Function to perform additional checks if they are defined for the file_type.

    :param input_file: input file name
    :param file_type: type of the file
    :param logger: dirbs logger instance
    :return: dict or None
    """
dict or None
dict or None
input_file
input file name
input file name
file_type
type of the file
type of the file
logger
dirbs logger instance
dirbs logger instance