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

Method getAttributes

Engine/source/platformWin32/winVolume.cpp:352–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352bool Win32File::getAttributes(Attributes* attr)
353{
354 WIN32_FIND_DATAW info;
355 HANDLE handle = ::FindFirstFileW(PathToOS(mName).utf16(), &info);
356 ::FindClose(handle);
357 if (handle == INVALID_HANDLE_VALUE)
358 return false;
359
360 _CopyStatAttributes(info,attr);
361 attr->name = mPath;
362 return true;
363}
364
365U64 Win32File::getSize()
366{

Callers

nothing calls this directly

Calls 3

PathToOSFunction · 0.85
_CopyStatAttributesFunction · 0.85
utf16Method · 0.45

Tested by

no test coverage detected