Skip to content

Commit b8d1cbb

Browse files
committed
test
1 parent 6bf6569 commit b8d1cbb

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

modules/PhysiCell_settings.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@
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
365360
bool 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

389373
void create_output_directory(const std::string& path)
390374
{

0 commit comments

Comments
 (0)