#include #include #include bool Jenga::Common::Path::IsExistFile() const { WIN32_FIND_DATA wfd; HANDLE hFind = FindFirstFile( fullPath.c_str() , &wfd ); if( hFind != INVALID_HANDLE_VALUE ){ FindClose( hFind ); if( wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) { // ディレクトリ return false; } return true; } return false; }