WSL/SLF GitLab Repository

Commit 0714a71b authored by Mathias Bavay's avatar Mathias Bavay
Browse files

fixed another bug reading files in a directory on Windows. I never thought...

fixed another bug reading files in a directory on Windows. I never thought this could be so tricky...
parent 324a3b0c
......@@ -181,8 +181,9 @@ void readDirectory(const std::string& path, std::list<std::string>& dirlist, con
throw FileAccessException("Error opening directory " + path, AT);
}
const std::string inpath = path+"\\\\*";
WIN32_FIND_DATA ffd;
const HANDLE hFind = FindFirstFileA(path.c_str(), &ffd);
const HANDLE hFind = FindFirstFileA(inpath.c_str(), &ffd);
if (INVALID_HANDLE_VALUE == hFind) {
throw FileAccessException("Error opening directory " + path, AT);
}
......
Supports Markdown
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