Last active
August 29, 2015 14:02
-
-
Save huoxudong125/57a4bc8fdc5a7e931659 to your computer and use it in GitHub Desktop.
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 IsExistDirectory(const std::wstring& dirName_in) | |
{ | |
DWORD ftyp = GetFileAttributes(dirName_in.c_str()); | |
if (ftyp == INVALID_FILE_ATTRIBUTES) | |
return false; //something is wrong with your path! | |
if (ftyp & FILE_ATTRIBUTE_DIRECTORY) | |
return true; // this is a directory! | |
return false; // this is not a directory! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment