Gets information about a file using an open file pointer
<?php fstat(resource $stream): array|false
<?php throw new \BadMethodCallException('Not supported on your platform because /dev/fd is not readable');
}
$stat = fstat($tmp);
$ino = (int) $stat['ino'];
foreach ($dir as $file) {