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

Method FileExists

Source/Engine/Platform/Unix/UnixFileSystem.cpp:227–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227bool UnixFileSystem::FileExists(const StringView& path)
228{
229 struct stat fileInfo;
230 const UnixString pathANSI(*path, path.Length());
231 if (stat(pathANSI.Get(), &fileInfo) != -1)
232 {
233 return S_ISREG(fileInfo.st_mode);
234 }
235 return false;
236}
237
238bool UnixFileSystem::DeleteFile(const StringView& path)
239{

Callers

nothing calls this directly

Calls 3

statClass · 0.70
LengthMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected