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

Function _IsDirectory

Engine/source/platformWin32/winVolume.cpp:111–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109*/
110
111static bool _IsDirectory(const String& file)
112{
113 // Get file info
114 WIN32_FIND_DATAW info;
115 HANDLE handle = ::FindFirstFileW(PathToOS(file).utf16(), &info);
116 ::FindClose(handle);
117 if (handle == INVALID_HANDLE_VALUE)
118 return false;
119
120 return S_ISDIR(info.dwFileAttributes);
121}
122
123
124//-----------------------------------------------------------------------------

Callers 1

openMethod · 0.85

Calls 2

PathToOSFunction · 0.85
utf16Method · 0.45

Tested by

no test coverage detected