From ccabb6a25a4dfe64a9e2278474edfc7c3416bf80 Mon Sep 17 00:00:00 2001 From: Daniel Bergman Date: Mon, 28 Apr 2025 17:33:22 -0400 Subject: [PATCH] robust OS path separators --- core/PhysiCell_utilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/PhysiCell_utilities.cpp b/core/PhysiCell_utilities.cpp index 91f0cd582..457eb36c7 100644 --- a/core/PhysiCell_utilities.cpp +++ b/core/PhysiCell_utilities.cpp @@ -370,7 +370,7 @@ void copy_file_to_output(std::string filename) std::cout << "Copying " << filename << " to output folder." << std::endl; // copy the file to the output folder std::string basename = filename; - size_t found = basename.find_last_of("/"); // find the end of the path + size_t found = basename.find_last_of("/\\"); if (found != std::string::npos) { basename = basename.substr(found + 1);