MCPcopy Create free account
hub / github.com/cocos/cocos-engine / isFileExist

Method isFileExist

native/cocos/platform/FileUtils.cpp:789–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

787}
788
789bool FileUtils::isFileExist(const ccstd::string &filename) const {
790 if (isAbsolutePath(filename)) {
791 return isFileExistInternal(normalizePath(filename));
792 }
793 ccstd::string fullpath = fullPathForFilename(filename);
794 return !fullpath.empty();
795}
796
797bool FileUtils::isAbsolutePath(const ccstd::string &path) const {
798 return (path[0] == '/');

Callers 15

readLocalizationFileMethod · 0.80
validateMethod · 0.80
setupUIMethod · 0.80
onSendCommandMethod · 0.80
loadDragonBonesDataMethod · 0.80
onScheduleMethod · 0.80
createVhostMethod · 0.80
play2dMethod · 0.80
preloadMethod · 0.80
tryParseConfigMethod · 0.80

Calls 2

normalizePathFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected