Skip to content

Instantly share code, notes, and snippets.

@timpulver
Created March 19, 2012 19:28
Show Gist options
  • Save timpulver/2125272 to your computer and use it in GitHub Desktop.
Save timpulver/2125272 to your computer and use it in GitHub Desktop.
Check if a directory exists (CPP)
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