public function fget(string $remoteFile, $handle, int $resumePos = 0)
    {
        if (!@ftp_fget($this->ftp, $handle, $remoteFile, FTP_BINARY, $resumePos)) {
            throw new Exception("Cannot write in file handle");
        }

        return $this;
    }
public function fget(string $remoteFile, $handle, int $resumePos = 0)
    {
        if (!@ftp_fget($this->ftp, $handle, $remoteFile, FTP_BINARY, $resumePos)) {
            throw new Exception("Cannot write in file handle");
        }

        return $this;
    }
public function fget ( string $ remoteFile , $ handle , int $ resumePos = 0 ) { if ( ! @ ftp_fget ( $ this -> ftp , $ handle , $ remoteFile , FTP_BINARY , $ resumePos ) ) { throw new Exception ( "Cannot write in file handle" ) ; } return $ this ; }
Get a file from ftp-server and write it directly into file.

@param string $remoteFile Remote file path.
@param mixed  $handle     File handle.
@param int    $resumePos  [optional] Start or resume position in file.

@return $this
@throws Exception
Get a file from ftp - server and write it directly into file .