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

Function _IsDirectory

Engine/source/platformWin32/winVolume.cpp:114–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

openMethod · 0.85

Calls 2

PathToOSFunction · 0.85
utf16Method · 0.45

Tested by

no test coverage detected