-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Android: CCFileUtils listFiles impl #19044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: CCFileUtils listFiles impl #19044
Conversation
589e512
to
fd5fcfe
Compare
fileSet.insert(suffix); | ||
}else if(parts.size() > 1){ | ||
fileSet.insert(parts[0] + "/"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
splitPath
is too complex here, we don't need to know every part content, just need to check if it has /
or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok.
Too complicate in this context
@jianglong you can close and open the PR the trigger CI in future. |
okay |
…v3-merging * commit 'a59519a4ef567df7aabac77646d49baa4709ff01': (65 commits) [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#19082) Fix several bugs with button's title (cocos2d#19073) [android] fix crash when point JNIEnv is a nullptr in getStringUTFCharsJNI func. (cocos2d#19079) [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#19074) refactor cmake on use libs (cocos2d#19054) [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#19068) [linux] CCFileUtils::isFileExistInternal should reject a folder (cocos2d#19062) Correct last delta time (cocos2d#18898) Add missing <functional> header which the standard requires and will be necessary to use std::function in VS2019. (cocos2d#18989) fix wrong parameter (cocos2d#19060) DrawNode add isolate flag (cocos2d#19056) Android: CCFileUtils listFiles impl (cocos2d#19044) CameraBackgroundDepthBrush should handle opengl recreate event. (cocos2d#19037) [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#19052) shorten the android build path, reduce long path error (cocos2d#19045) CCFileUtils: improve thread safety (use single recursive_mutex) (cocos2d#19046) remove assert (cocos2d#19047) [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#19048) Android: Adds supporting edge screens (cocos2d#19043) cocos2d::Data: prevent use after free. (cocos2d#19034) ... # Conflicts: # build/cocos2d_libs.xcodeproj/project.pbxproj # cocos/3d/Android.mk # cocos/Android.mk # cocos/deprecated/CCDeprecated.h # cocos/editor-support/cocostudio/Android.mk # cocos/editor-support/spine/Android.mk # cocos/platform/android/libcocos2dx-with-controller/build.gradle # cocos/platform/android/libcocos2dx/build.gradle # cocos/ui/UIAbstractCheckButton.cpp # cocos/ui/UIButton.cpp # cocos/ui/UIEditBox/UIEditBox.h # cocos/ui/UIEditBox/UIEditBoxImpl-common.h # extensions/Android.mk # tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.cpp # tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.h
ref #18725