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

Method getAttributes

Engine/source/platformPOSIX/posixVolume.cpp:278–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278bool PosixFile::getAttributes(Attributes* attr)
279{
280 struct stat info;
281 int error = _handle? fstat(fileno(_handle),&info): stat(_name.c_str(),&info);
282
283 if (error < 0)
284 {
285 _updateStatus();
286 return false;
287 }
288
289 copyStatAttributes(info,attr);
290 attr->name = _path;
291
292 return true;
293}
294
295U32 PosixFile::calculateChecksum()
296{

Callers

nothing calls this directly

Calls 3

copyStatAttributesFunction · 0.85
statClass · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected