Update docs on what is needed for the transfer kitten

This commit is contained in:
Kovid Goyal
2023-07-20 20:00:04 +05:30
parent 15978c9c60
commit 34dfd1881f
2 changed files with 9 additions and 6 deletions

View File

@@ -20,12 +20,15 @@ to transfer only changes to large files.
.. seealso:: See the :doc:`remote_file` kitten .. seealso:: See the :doc:`remote_file` kitten
.. note:: .. note::
This kitten (which practically means kitty) must be installed on the other This kitten must be installed on the other machine. The easiest way to do so
machine as well. If that is not possible you can use the :doc:`remote_file` is to ssh into it using the :doc:`ssh kitten </kittens/ssh>`. Or just
kitten instead. Or write your own script to use the underlying download the kitten binary yourself from the `kitty releases page
:doc:`file transfer protocol </file-transfer-protocol>`. <https://github.com/kovidgoyal/kitty/releases>`__ and put it somewhere in
PATH. If that is not possible you can use the :doc:`remote_file` kitten
instead. Or write your own script to use the underlying :doc:`file transfer
protocol </file-transfer-protocol>`.
.. versionadded:: 0.24.0 .. versionadded:: 0.30.0
Basic usage Basic usage

View File

@@ -485,7 +485,7 @@ class TestFileTransmission(BaseTest):
def test_transfer_send(self): def test_transfer_send(self):
src = os.path.join(self.tdir, 'src') src = os.path.join(self.tdir, 'src')
with open(src, 'wb') as s: with open(src, 'wb') as s:
s.write(os.urandom(813)) s.write(os.urandom(9137))
dest = os.path.join(self.tdir, 'dest') dest = os.path.join(self.tdir, 'dest')
with self.run_kitten([src, dest]) as pty: with self.run_kitten([src, dest]) as pty:
pty.wait_till_child_exits(require_exit_code=0) pty.wait_till_child_exits(require_exit_code=0)