def METHOD_NAME(self, train_dirs):
    names = []
    curdir = os.path.abspath(os.path.curdir)
    for train_dir in train_dirs:
        abspath = os.path.abspath(train_dir)
        names.append(os.path.basename(abspath) if abspath != curdir else 'current')
    data = {}
    dirs = [{'name': name, 'path': path} for name, path in zip(names, train_dirs)]
    for dir_info in dirs:
        path = dir_info.get('path')
        content = self._update_data_from_dir(path)
        if not content:
            continue
        data[path] = {
            'path': path,
            'name': dir_info.get('name'),
            'content': content
        }
    self.data = data