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

Method getAttributes

Engine/source/platformWin32/winVolume.cpp:361–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361bool Win32File::getAttributes(Attributes* attr)
362{
363 WIN32_FIND_DATAW info;
364 HANDLE handle = ::FindFirstFileW(PathToOS(mName).utf16(), &info);
365 ::FindClose(handle);
366 if (handle == INVALID_HANDLE_VALUE)
367 return false;
368
369 _CopyStatAttributes(info,attr);
370 attr->name = mPath;
371 return true;
372}
373
374U64 Win32File::getSize()
375{

Callers

nothing calls this directly

Calls 3

PathToOSFunction · 0.85
_CopyStatAttributesFunction · 0.85
utf16Method · 0.45

Tested by

no test coverage detected