Created
March 19, 2012 19:28
-
-
Save timpulver/2125272 to your computer and use it in GitHub Desktop.
Check if a directory exists (CPP)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool DirectoryExists( const char* pzPath ){ | |
DIR *pDir; | |
bool bExists = false; | |
pDir = opendir (pzPath); | |
if (pDir != NULL){ | |
return true; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment