diff --git a/Utilities/File.cpp b/Utilities/File.cpp index e9cbc3a8af..9d3d4571e3 100644 --- a/Utilities/File.cpp +++ b/Utilities/File.cpp @@ -856,7 +856,7 @@ bool fs::dir::open(const std::string& dirname) m_dd = -1; #else - const auto ptr = ::opendir(m_path.get()); + const auto ptr = ::opendir(dirname.c_str()); if (!ptr) { return false;