fs: Minor fix of fs::dir::open

Did not close previous handle on fs::dir::open like on fs::file
This commit is contained in:
Elad 2024-11-27 21:38:30 +02:00
parent d63e643081
commit 2b9f076024

View File

@ -1789,6 +1789,8 @@ fs::file_id fs::file::get_id() const
bool fs::dir::open(const std::string& path)
{
m_dir.reset();
if (path.empty())
{
// Don't allow opening empty path (TODO)