public function getFileStats($path)
    {
        $stats = @ssh2_sftp_stat($this->sftp, $path);
        if(!$stats['size']){
            throw new \Exception("Could get file stat: ".$path);
        }
        return $stats;
    }
public function getFileStats($path)
    {
        $stats = @ssh2_sftp_stat($this->sftp, $path);
        if(!$stats['size']){
            throw new \Exception("Could get file stat: ".$path);
        }
        return $stats;
    }
public function getFileStats ( $ path ) { $ stats = @ ssh2_sftp_stat ( $ this -> sftp , $ path ) ; if ( ! $ stats [ 'size' ] ) { throw new \ Exception ( "Could get file stat: " . $ path ) ; } return $ stats ; }
Gets remote file stats
@param string $path The path to the file to get stats for
@return Array with size, gid, uid, atime, mtime, mode keys
Gets remote file stats