Commit 0dc6a04f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

fs: Factory: Flush the folder cache when refreshing

parent 312e2f03
......@@ -70,6 +70,8 @@ std::shared_ptr<fs::IDevice> FileSystemFactory::createDevice( const std::string&
void FileSystemFactory::refresh()
{
fs::Device::populateCache();
std::lock_guard<std::mutex> lock( m_mutex );
m_dirs.clear();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment