parameters: (file, **kwargs)
return_statement: return await download(writerFactory=writerFactory, **kwargs)
docstring: Convenience method to download data to a file object.  The file must be
      writeable, in binary mode, seekable (`f.seek`), and truncatable
      (`f.truncate`) to support retries.  Arguments are the same as `download`,
      except that `writerFactory` should not be supplied.  Returns the content-type.
docstring_summary: Convenience method to download data to a file object.  The file must be
      writeable, in binary mode, seekable (`f.seek`), and truncatable
      (`f.truncate`) to support retries.  Arguments are the same as `download`,
      except that `writerFactory` should not be supplied.  Returns the content-type.
docstring_tokens: Convenience method to download data to a file object . The file must be writeable in binary mode seekable ( f . seek ) and truncatable ( f . truncate ) to support retries . Arguments are the same as download except that writerFactory should not be supplied . Returns the content - type .
function: async def downloadToFile(file, **kwargs):
      """
      Convenience method to download data to a file object.  The file must be
      writeable, in binary mode, seekable (`f.seek`), and truncatable
      (`f.truncate`) to support retries.  Arguments are the same as `download`,
      except that `writerFactory` should not be supplied.  Returns the content-type.
      """
      async def writerFactory():
          file.seek(0)
          file.truncate()
          return FileWriter(file)
  
      return await download(writerFactory=writerFactory, **kwargs)
function_tokens: async def downloadToFile ( file , * * kwargs ) : async def writerFactory ( ) : file . seek ( 0 ) file . truncate ( ) return FileWriter ( file ) return await download ( writerFactory = writerFactory , * * kwargs )