(self, output_file,
                      name, cid, cpw="", seekpos=0,
                      query_resp_hook=None, reporthook=None)
return self.download_by_resp(
            output_file=output_file, ftinitdownload_resp=resp,
            seekpos=seekpos, reporthook=reporthook,
            fallbackhost=self.ts3conn.telnet_conn.host)
This is the recommended method to download a file from a TS3 server.

        **name**, **cid**, **cpw** and **seekpos** are the parameters for the
        TS3 query command **ftinitdownload**. The parameter **clientftid** is
        automatically created and unique for the whole runtime of the programm.

        **query_resp_hook**, if provided, is called, when the response of the
        ftinitdownload query has been received. Its single parameter is the
        the response of the querry.

        For downloading the file from the server, :meth:`download()` is called.
        So take a look a this method for further information.

        .. seealso::

            * :meth:`~commands.TS3Commands.ftinitdownload`
            * :func:`~urllib.request.urlretrieve`
This is the recommended method to download a file from a TS3 server.
This is the recommended method to download a file from a TS3 server .
def init_download(self, output_file,
                      name, cid, cpw="", seekpos=0,
                      query_resp_hook=None, reporthook=None):
        """
        This is the recommended method to download a file from a TS3 server.

        **name**, **cid**, **cpw** and **seekpos** are the parameters for the
        TS3 query command **ftinitdownload**. The parameter **clientftid** is
        automatically created and unique for the whole runtime of the programm.

        **query_resp_hook**, if provided, is called, when the response of the
        ftinitdownload query has been received. Its single parameter is the
        the response of the querry.

        For downloading the file from the server, :meth:`download()` is called.
        So take a look a this method for further information.

        .. seealso::

            * :meth:`~commands.TS3Commands.ftinitdownload`
            * :func:`~urllib.request.urlretrieve`
        """
        ftid = self.get_ftid()
        resp = self.ts3conn.ftinitdownload(
            clientftfid=ftid, name=name, cid=cid, cpw=cpw, seekpos=seekpos)

        if query_resp_hook is not None:
            query_resp_hook(resp)
        return self.download_by_resp(
            output_file=output_file, ftinitdownload_resp=resp,
            seekpos=seekpos, reporthook=reporthook,
            fallbackhost=self.ts3conn.telnet_conn.host)
def init_download ( self , output_file , name , cid , cpw = "" , seekpos = 0 , query_resp_hook = None , reporthook = None ) : ftid = self . get_ftid ( ) resp = self . ts3conn . ftinitdownload ( clientftfid = ftid , name = name , cid = cid , cpw = cpw , seekpos = seekpos ) if query_resp_hook is not None : query_resp_hook ( resp ) return self . download_by_resp ( output_file = output_file , ftinitdownload_resp = resp , seekpos = seekpos , reporthook = reporthook , fallbackhost = self . ts3conn . telnet_conn . host )