MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / FileExists

Method FileExists

Source/Engine/Platform/Android/AndroidFileSystem.cpp:229–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229bool AndroidFileSystem::FileExists(const StringView& path)
230{
231 struct stat fileInfo;
232 const StringAsANSI<> pathANSI(*path, path.Length());
233 if (stat(pathANSI.Get(), &fileInfo) != -1)
234 {
235 return S_ISREG(fileInfo.st_mode);
236 }
237 if (IsAsset(path, pathANSI.Get()))
238 {
239 return true;
240 }
241 return false;
242}
243
244bool AndroidFileSystem::DeleteFile(const StringView& path)
245{

Callers

nothing calls this directly

Calls 4

IsAssetFunction · 0.85
statClass · 0.70
LengthMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected