@@ -99,7 +99,7 @@ private key or password authentication.
9999 # do stuff here
100100
101101 Config options always take precedence over parameters if both exist. Keep in
102- mind there will more than likely be a delta between the security option
102+ mind there it's quite likely there will be a delta between the security option
103103algorithms your verion of SSH supports and those supported by the underlying
104104paramiko dependency.
105105
@@ -127,7 +127,7 @@ always attempted unless an alternative is passed. If you wish to disable host
127127key checking, **NOT ADVISED **, you will need to modify the default CnOpts and
128128set the knownhosts to None if no such file exists. You can still modify an
129129existing CnOpts by setting cnopts.hostkeys to None if a default known_hosts
130- exists or an alternative file was passed when CnOpts was created.
130+ exists or an alternative file was passed when the CnOpts was created.
131131
132132.. code-block :: python
133133
@@ -146,7 +146,7 @@ exists or an alternative file was passed when CnOpts was created.
146146 with sftpretty.Connection(' host' , username = ' me' , password = ' pass' , cnopts = cnopts):
147147 # do stuff here
148148
149- To use a completely different known_hosts file, you can override CnOpts looking
149+ To use a completely different known_hosts file, you can override CnOpts search
150150for ``~/.ssh/known_hosts `` by specifying the file when instantiating.
151151
152152.. code-block :: python
@@ -201,7 +201,8 @@ Just send the dict into the connection object like so.
201201
202202 import sftpretty
203203
204- cinfo = {' host' :' hostname' , ' username' :' me' , ' password' :' secret' , ' port' :2222 }
204+ cinfo = {' host' : ' hostname' , ' username' : ' me' ,
205+ ' password' : ' secret' , ' port' : 2222 }
205206 with sftpretty.Connection(** cinfo) as sftp:
206207 #
207208 # ... do sftp operations
@@ -219,7 +220,7 @@ the modification times on the local copy match those on the server.
219220 # ...
220221 sftp.get(' myfile' , preserve_mtime = True )
221222
222- Now with the ability to resume a previously started download. Based on local
223+ Resuming a previously initiated download is supported and based on local
223224destination path matching.
224225
225226.. code-block :: python
@@ -258,16 +259,16 @@ connections from above still applies.
258259--------------------------------
259260In addition to the normal paramiko call, you can optionally set the
260261``preserve_mtime `` parameter to ``True `` and the operation will make sure that
261- the modification times on the server copy match those on the local.
262+ the modification times on the server copy match those of the local.
262263
263264.. code-block :: python
264265
265266 # copy myfile, to the current working directory on the server,
266267 # preserving modification time
267268 sftp.put(' myfile' , preserve_mtime = True )
268269
269- Now with the ability to resume a prematurely ended upload. Based on remote
270- destination path matching.
270+ Resume a prematurely ended upload if desired, still based on destination path
271+ matching.
271272
272273.. code-block :: python
273274
0 commit comments