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