| 69 | } |
| 70 | |
| 71 | bool File::isDirectory(String const& path) { |
| 72 | DWORD attribs = GetFileAttributesW(stringToUtf16(path.trimEnd("\\/")).get()); |
| 73 | if (attribs == INVALID_FILE_ATTRIBUTES) |
| 74 | return false; |
| 75 | return attribs & FILE_ATTRIBUTE_DIRECTORY; |
| 76 | } |
| 77 | |
| 78 | String File::fullPath(const String& path) { |
| 79 | WCHAR buffer[MAX_PATH]; |
nothing calls this directly
no test coverage detected