use stat instead of attributes

This commit is contained in:
Robin Appelman 2023-10-19 16:33:59 +02:00
commit 89082b2b29
3 changed files with 16 additions and 28 deletions

View file

@ -131,7 +131,7 @@ abstract class NativeStream implements File {
*/
public function stream_stat() {
try {
return $this->state->stat($this->url);
return $this->state->fstat($this->handle, $this->url);
} catch (Exception $e) {
return false;
}