How to get name of the file in the consequent filters downstream in the pipeline

Hello!

I have the file that is being read and then is processed by several filters. However, I want to use the original file name in one of the consequent filters to dump some data to relevant file for debug purposes.

However, I am not able to do that.

Logically seems like information should be in vtkInformation

  vtkInformation* inInfo = inputVector[0]->GetInformationObject(0);
  std::ostringstream stream;
  inInfo->PrintSelf(stream, vtkIndent());
  std::string str = stream.str();

But I have not found nothing like the name of the original file.

Thanks