| 60 | } |
| 61 | |
| 62 | bool File::isFile(String const& path) { |
| 63 | WIN32_FIND_DATAW findFileData; |
| 64 | const HANDLE handle = FindFirstFileW(stringToUtf16(path).get(), &findFileData); |
| 65 | if (handle == INVALID_HANDLE_VALUE) |
| 66 | return false; |
| 67 | FindClose(handle); |
| 68 | return (FILE_ATTRIBUTE_DIRECTORY & findFileData.dwFileAttributes) == 0; |
| 69 | } |
| 70 | |
| 71 | bool File::isDirectory(String const& path) { |
| 72 | DWORD attribs = GetFileAttributesW(stringToUtf16(path.trimEnd("\\/")).get()); |
nothing calls this directly
no test coverage detected