MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / createDirectory

Function createDirectory

core/filetools.cpp:349–362  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

347
348//---------------------------------------------------------------------------
349 bool createDirectory(const std::string &dir)
350 {
351 std::string s(dir);
352 cleanDirName(s);
353 try
354 {
355 fs::path p(s);
356 create_directories(p);
357 }
358 catch ( ... )
359 {
360 }
361 return dirExists(s);
362 }
363
364//---------------------------------------------------------------------------
365 std::string getPathRelativeToLocation(const std::string &_pathToAlter, const std::string &_fixedPath)

Callers 5

copyFileFunction · 0.85
copyDirectoryFunction · 0.85
renameFileFunction · 0.85
writeFileFunction · 0.85
getEmptyTempDirFunction · 0.85

Calls 2

cleanDirNameFunction · 0.85
dirExistsFunction · 0.85

Tested by

no test coverage detected