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

ENH: no tmpdir check when tmpdir parameter is empty

Showing with 7 additions and 6 deletions
+7 -6
......@@ -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;
......
Supports Markdown
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