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