mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 00:45:57 +08:00
create datadir folder if not exist
This commit is contained in:
parent
20f7cc0cf9
commit
ec9030e0ef
@ -272,6 +272,9 @@ static std::string g_data_dir;
|
||||
void set_data_dir(const std::string &dir)
|
||||
{
|
||||
g_data_dir = dir;
|
||||
if (!g_data_dir.empty() && !boost::filesystem::exists(g_data_dir)) {
|
||||
boost::filesystem::create_directory(g_data_dir);
|
||||
}
|
||||
}
|
||||
|
||||
const std::string& data_dir()
|
||||
|
Loading…
x
Reference in New Issue
Block a user