def METHOD_NAME(self):
    data_files = []
    state_file = None
    data_files_size = 0
    _dir = self.settings.get_data_folder_path()
    event_storage_files = None
    if os.path.isdir(_dir):
        for file in os.listdir(_dir):
            if file.startswith('data_'):
                data_files.append(file)
                data_files_size += os.path.getsize(_dir + file)
            elif file.startswith('state_'):
                state_file = file
        if data_files_size == 0:
            data_files.append(self.create_new_datafile())
        if not state_file:
            state_file = self.create_file('state_', 'file')
            with open(self.settings.get_data_folder_path() + state_file, 'w') as state_file_obj:
                dump({"position": 0, "file": sorted(data_files)[0]}, state_file_obj)
        event_storage_files = EventStorageFiles(state_file, data_files)
    return event_storage_files