| 276 | } |
| 277 | |
| 278 | bool 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 | |
| 295 | U32 PosixFile::calculateChecksum() |
| 296 | { |
nothing calls this directly
no test coverage detected