source: dev/trunk/jenga/src/common/Path.cpp@ 332

Last change on this file since 332 was 314, checked in by dai_9181, 17 years ago

Path::IsExistFileメソッドを実装

File size: 440 bytes
RevLine 
[314]1#include <boost/foreach.hpp>
2#include <jenga/include/common/Path.h>
3
4#include <windows.h>
5
6
7bool Jenga::Common::Path::IsExistFile() const
8{
9 WIN32_FIND_DATA wfd;
10 HANDLE hFind = FindFirstFile( fullPath.c_str() , &wfd );
11 if( hFind != INVALID_HANDLE_VALUE ){
12 FindClose( hFind );
13 if( wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY )
14 {
15 // ディレクトリ
16 return false;
17 }
18
19 return true;
20 }
21
22 return false;
23}
Note: See TracBrowser for help on using the repository browser.