| 109 | */ |
| 110 | |
| 111 | static bool _IsDirectory(const String& file) |
| 112 | { |
| 113 | // Get file info |
| 114 | WIN32_FIND_DATAW info; |
| 115 | HANDLE handle = ::FindFirstFileW(PathToOS(file).utf16(), &info); |
| 116 | ::FindClose(handle); |
| 117 | if (handle == INVALID_HANDLE_VALUE) |
| 118 | return false; |
| 119 | |
| 120 | return S_ISDIR(info.dwFileAttributes); |
| 121 | } |
| 122 | |
| 123 | |
| 124 | //----------------------------------------------------------------------------- |