Skip to content
Snippets Groups Projects
Commit 36da610a authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: 575: InputImageListParameter leave the file existance check to the reader

parent f8b93ba7
No related branches found
No related tags found
No related merge requests found
......@@ -47,8 +47,8 @@ InputImageListParameter::SetListFromFileName(const std::vector<std::string> & fi
const std::string filename = filenames[i];
// TODO : when the logger will be available, redirect the exception
// in the logger (like what is done in MsgReporter)
if (!filename.empty()
&& itksys::SystemTools::FileExists(filename.c_str()))
// File existance checked by the reader
if (!filename.empty())
{
ImageFileReaderType::Pointer reader = ImageFileReaderType::New();
reader->SetFileName(filename);
......@@ -94,8 +94,8 @@ InputImageListParameter::AddFromFileName(const std::string & filename)
{
// TODO : when the logger will be available, redirect the exception
// in the logger (like what is done in MsgReporter)
if (!filename.empty()
&& itksys::SystemTools::FileExists(filename.c_str()))
// File existance checked by the reader
if (!filename.empty())
{
ImageFileReaderType::Pointer reader = ImageFileReaderType::New();
reader->SetFileName(filename);
......@@ -130,8 +130,8 @@ InputImageListParameter::SetNthFileName( const unsigned int id, const std::strin
// TODO : when the logger will be available, redirect the exception
// in the logger (like what is done in MsgReporter)
if (!filename.empty()
&& itksys::SystemTools::FileExists(filename.c_str()))
// File existance checked by the reader
if (!filename.empty())
{
ImageFileReaderType::Pointer reader = ImageFileReaderType::New();
reader->SetFileName(filename);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment