'Init the monitored folder list.
The list is defined in the Glances configuration file.'

def __set_folder_list(self, section):

    for l in range(1, (self.__folder_list_max_size + 1)):
        value = {}
        key = (('folder_' + str(l)) + '_')
        value['path'] = self.config.get_value(section, (key + 'path'))
        if (value['path'] is None):
            continue
        for i in ['careful', 'warning', 'critical']:
            value[i] = self.config.get_value(section, (key + i))
            if (value[i] is None):
                logger.debug('No    {}    threshold    for    folder    {}'.format(i, value['path']))
        self.__folder_list.append(value)
