MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / resolve

Method resolve

Engine/source/platformWin32/winVolume.cpp:247–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247FileNodeRef 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
267FileNodeRef Win32FileSystem::create(const Path& path, FileNode::Mode mode)
268{

Callers

nothing calls this directly

Calls 3

_BuildFileNameFunction · 0.85
PathToOSFunction · 0.85
utf16Method · 0.45

Tested by

no test coverage detected