SyntaxFix
Write A Post
Hire A Developer
Questions
0.1 second Google search:
BOOL DirectoryExists(const char* dirName) { DWORD attribs = ::GetFileAttributesA(dirName); if (attribs == INVALID_FILE_ATTRIBUTES) { return false; } return (attribs & FILE_ATTRIBUTE_DIRECTORY); }