File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 6565###############################################################################
6666*/
6767
68- #ifdef __cpp_lib_filesystem
6968#include < filesystem>
70- #else
71- #include < sys/stat.h>
72- #endif
7369
7470#include " ./PhysiCell_settings.h"
7571#include " ../core/PhysiCell_cell.h"
@@ -361,7 +357,6 @@ bool create_directories(const std::string &path)
361357 return create_directory (path);
362358}
363359
364- #ifdef __cpp_lib_filesystem
365360bool create_directory (const std::string &path)
366361{
367362 if (std::filesystem::exists (path)) {
@@ -374,17 +369,6 @@ bool create_directory(const std::string &path)
374369 return false ; // An error occurred
375370 }
376371}
377- #else
378- bool create_directory (const std::string &path)
379- {
380- #if defined(__MINGW32__) || defined(__MINGW64__)
381- bool success = mkdir (path.c_str ()) == 0 ;
382- #else
383- bool success = mkdir (path.c_str (), 0755 ) == 0 ;
384- #endif
385- return success || errno == EEXIST;
386- }
387- #endif
388372
389373void create_output_directory (const std::string& path)
390374{
You can’t perform that action at this time.
0 commit comments