From b09066408452060359954bb50d484f1a0a55439b Mon Sep 17 00:00:00 2001 From: halx99 Date: Mon, 17 Aug 2020 12:09:31 +0800 Subject: [PATCH] Make android listFiles behavior same with other platforms --- cocos/platform/android/CCFileUtils-android.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/platform/android/CCFileUtils-android.cpp b/cocos/platform/android/CCFileUtils-android.cpp index ed5552b538..66bf4f3048 100644 --- a/cocos/platform/android/CCFileUtils-android.cpp +++ b/cocos/platform/android/CCFileUtils-android.cpp @@ -332,7 +332,7 @@ std::vector FileUtilsAndroid::listFiles(const std::string& dirPath) { string filepath(tmpDir); if(isDirectoryExistInternal(filepath)) filepath += "/"; - fileList.push_back(filepath); + fileList.push_back(fullPath + filepath); } AAssetDir_close(dir); return fileList;