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

Function DirectoryExists

SampleFramework12/v1.00/FileIO.cpp:31–38  ·  view source on GitHub ↗

Retursn true if a directory exists

Source from the content-addressed store, hash-verified

29
30// Retursn true if a directory exists
31bool DirectoryExists(const wchar* dirPath)
32{
33 if(dirPath == NULL)
34 return false;
35
36 DWORD fileAttr = GetFileAttributes(dirPath);
37 return (fileAttr != INVALID_FILE_ATTRIBUTES && (fileAttr & FILE_ATTRIBUTE_DIRECTORY));
38}
39
40
41// Returns the directory containing a file

Callers 1

CompileShaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected