Fix windows directory listing function
This commit is contained in:
parent
d4b2c58dc8
commit
90eef13aeb
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ vector<string> list_directory(const string &path) {
|
|||
vector<string> result;
|
||||
|
||||
WIN32_FIND_DATA search_data;
|
||||
HANDLE handle = FindFirstFile(path.c_str(), &search_data);
|
||||
HANDLE handle = FindFirstFile((path + "\\*").c_str(), &search_data);
|
||||
while (handle != INVALID_HANDLE_VALUE) {
|
||||
string name(search_data.cFileName);
|
||||
result.push_back(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue