diff --git a/Utilities/File.cpp b/Utilities/File.cpp index 43eba93eaa..3c4a8c769d 100644 --- a/Utilities/File.cpp +++ b/Utilities/File.cpp @@ -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)