49#include "itksys/SystemTools.hxx"
59 if (dir.empty() || itksys::SystemTools::FileExists(dir.c_str(),
true))
67 if (dir.empty() ||
"." == dir || itksys::SystemTools::FileIsDirectory(dir))
73 itksys::SystemTools::MakeDirectory(dir.c_str());
76 if (!itksys::SystemTools::FileIsDirectory(dir))
87 if (fn.empty() || itksys::SystemTools::FileIsDirectory(fn))
95 if (itksys::SystemTools::FileExists(fn.c_str(),
true))
101 const std::string dir = itksys::SystemTools::GetFilenamePath(fn);
105 itksys::SystemTools::Touch(fn,
true);
108 if (!itksys::SystemTools::FileExists(fn.c_str(),
true))
Standard exception handling object.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....