Commit 8adb0e7c authored by remi cresson's avatar remi cresson

ENH: no tmpdir check when tmpdir parameter is empty

parent 4b5effd8
......@@ -143,14 +143,15 @@ private:
// If not, we add the separator
tmpdir.append("/");
}
}
// Check that the directory exists
if (!itksys::SystemTools::FileExists(tmpdir.c_str(),false))
{
otbAppLogFATAL("The directory " << tmpdir << " does not exist.");
// Check that the directory exists
if (!itksys::SystemTools::FileExists(tmpdir.c_str(),false))
{
otbAppLogFATAL("The directory " << tmpdir << " does not exist.");
}
otbAppLogINFO("Using temporary directory " << tmpdir);
}
otbAppLogINFO("Using temporary directory " << tmpdir);
// Return the prefix
std::string prefix = tmpdir + outbfname;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment