| Line | |
|---|
| 1 | #include <boost/foreach.hpp>
|
|---|
| 2 | #include <jenga/include/common/Path.h>
|
|---|
| 3 |
|
|---|
| 4 | #include <windows.h>
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 | bool 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.