From 90eef13aeb9b536b56229f8b33eba4372deb632f Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 8 Aug 2017 22:21:39 -0700 Subject: [PATCH] Fix windows directory listing function --- test/helpers/file_helpers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helpers/file_helpers.cc b/test/helpers/file_helpers.cc index 48f58891..c4be549a 100644 --- a/test/helpers/file_helpers.cc +++ b/test/helpers/file_helpers.cc @@ -48,7 +48,7 @@ vector list_directory(const string &path) { vector 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);