MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / FileExists

Function FileExists

SampleFramework12/v1.00/FileIO.cpp:18–28  ·  view source on GitHub ↗

Returns true if a file exits

Source from the content-addressed store, hash-verified

16
17// Returns true if a file exits
18bool FileExists(const wchar* filePath)
19{
20 if(filePath == NULL)
21 return false;
22
23 DWORD fileAttr = GetFileAttributes(filePath);
24 if (fileAttr == INVALID_FILE_ATTRIBUTES)
25 return false;
26
27 return true;
28}
29
30// Retursn true if a directory exists
31bool DirectoryExists(const wchar* dirPath)

Callers 8

OpenMethod · 0.85
GetExpandedShaderCodeFunction · 0.85
OpenMethod · 0.85
CompileShaderFunction · 0.85
LoadTextureFunction · 0.85
LoadMaterialResourcesFunction · 0.85
CreateWithAssimpMethod · 0.85
CreateFromMeshDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected