'Init the folder list from the configuration file, if it exists.'

def __init__(self, config):

    self.config = config
    if ((self.config is not None) and self.config.has_section('folders')):
        if scandir_tag:
            logger.debug('Folder    list    configuration    detected')
            self.__set_folder_list('folders')
        else:
            logger.error('Scandir    not    found.    Please    use    Python    3.5+    or    install    the    scandir    lib')
    else:
        self.__folder_list = []
