| 245 | } |
| 246 | |
| 247 | FileNodeRef Win32FileSystem::resolve(const Path& path) |
| 248 | { |
| 249 | String file = _BuildFileName(mVolume,path); |
| 250 | |
| 251 | WIN32_FIND_DATAW info; |
| 252 | HANDLE handle = ::FindFirstFileW(PathToOS(file).utf16(), &info); |
| 253 | ::FindClose(handle); |
| 254 | if (handle != INVALID_HANDLE_VALUE) |
| 255 | { |
| 256 | #ifdef TORQUE_DEBUG |
| 257 | verifyCompatibility(path, info); |
| 258 | #endif |
| 259 | if (S_ISREG(info.dwFileAttributes)) |
| 260 | return new Win32File(path,file); |
| 261 | if (S_ISDIR(info.dwFileAttributes)) |
| 262 | return new Win32Directory(path,file); |
| 263 | } |
| 264 | return 0; |
| 265 | } |
| 266 | |
| 267 | FileNodeRef Win32FileSystem::create(const Path& path, FileNode::Mode mode) |
| 268 | { |
nothing calls this directly
no test coverage detected