skip .stl/.png file when copying system profiles

This commit is contained in:
SoftFever 2024-02-13 16:23:34 +08:00
parent 38409359a8
commit 9f1d47117e
3 changed files with 25 additions and 4 deletions

View file

@ -654,7 +654,7 @@ inline std::string filter_characters(const std::string& str, const std::string&
return filteredStr;
}
void copy_directory_recursively(const boost::filesystem::path &source, const boost::filesystem::path &target);
void copy_directory_recursively(const boost::filesystem::path &source, const boost::filesystem::path &target, std::function<bool(const std::string)> filter = nullptr);
// Orca: Since 1.7.9 Boost deprecated save_string_file and load_string_file, copy and modified from boost 1.7.8
void save_string_file(const boost::filesystem::path& p, const std::string& str);