Win32 fix for FileUtils::listFilesRecursively returning no results. https://github.com/cocos2d/cocos2d-x/pull/20518/

This commit is contained in:
u0u0
2020-06-21 21:52:03 +08:00
parent e6b224bf29
commit 97acec457b

View File

@@ -240,7 +240,7 @@ std::string FileUtilsWin32::getFullPathForFilenameWithinDirectory(const std::str
void FileUtilsWin32::listFilesRecursively(const std::string& dirPath, std::vector<std::string> *files) const
{
std::string fullpath = fullPathForFilename(dirPath);
std::string fullpath = fullPathForDirectory(dirPath);
if (isDirectoryExist(fullpath))
{
tinydir_dir dir;