Skip to content

Commit

Permalink
use ensureFolderForFileExists instead (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger authored Feb 24, 2025
1 parent 4852a58 commit da0aa5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SofaImGui/src/SofaImGui/windows/WindowState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace windows {

void WindowState::writeState()
{
m_path = sofa::helper::system::FileSystem::findOrCreateAValidPath(m_path);
sofa::helper::system::FileSystem::ensureFolderForFileExists(m_path);

std::ofstream file(m_path);
if (!file.is_open())
Expand Down

0 comments on commit da0aa5d

Please sign in to comment.