1Change Log 2---------- 3 4 5* 0.2.9 (current, released 2016-07-04) 6 7 * bugfix: correctly implement hostcheck. Now, be default pysftp will verify 8 the host. See :attr:`pysftp.CnOpts.hostkeys` 9 * added :meth:`pysftp.Connection.remote_server_key` - used to retrieve the 10 remote hosts server key. 11 * added support for enabling compression, ``compression`` (J. Kruth) 12 * added :attr:`.active_compression`, to return the active local and remote compression settings as a tuple 13 * fixed an unwanted logging side-effect, after you set logging, it would remain, even if you closed the .Connection and couldn't be changed to something else. Now when Connection closes, any logging handlers are closed and can be changed to something else upon the next .Connection 14 * moved ``log`` parameter of Connection to the new CnOpts connection options object, deprecated the existing ``log`` parameter, will be removed in 0.3.0 15 * modified :meth:`pysftp.Conection.walktree` to always use posixpath conventions when walking a remote directory per the latest draft-ietf-secsh-filexfer-13.txt. Issue encountered with windows clients (#60) 16 * modified :func:`pysftp.reparent` to handle mis-matched pathing, i.e. windows -> posix, better (#61) 17 18* 0.2.8 (released 2014-05-28) 19 20 * created :func:`pysftp.walktree` for walking local directories 21 * added param recurse to :meth:`.pysftp.Connection.walktree` to allow it to do another trick 22 * created :meth:`.put_d` to put the contents of a local directory to a remote one 23 * created a context manager chdir method, :meth:`pysftp.Connection.cd` 24 * created :meth:`.put_r` to recursively put the contents of a local directory to a remote one 25 * fixed a bug with :func:`.st_mode_to_int` on py3 (#52) 26 * :meth:`.listdir_attr` now returns a sorted list, sorted on filename 27 * created :meth:`pysftp.cd` with-context version of ``os.chdir`` for local directories 28 * created docs, cookbook to show off some of the notable features of pysftp 29 30* 0.2.7 (released 2014-05-24) 31 32 * created :meth:`pysftp.Connection.walktree`, recursively walk, depth first, a remote directory structure. Used as the base of :meth:`.get_r`. See tests/test_walktree.py for examples. 33 * added :meth:`.unlink` as synonym for :meth:`.remove` 34 * added :meth:`.normalize` 35 * created :meth:`.get_r` to recursively copy remote directories to a local path 36 * created :attr:`.pwd` to return the current working directory 37 * created :meth:`.cwd` as synonym for :meth:`.chdir` 38 * modified :meth:`.listdir` to return a sorted list instead of an arbitrary one 39 * added :meth:`.readlink`, always returns an absolute path 40 * created :meth:`.get_d` to copy the remote directory to a local path (non-recursive) 41 * added :attr:`.timeout` to set the read/write timeout of the underlying channel for pending read/write ops 42 * added :meth:`.listdir_attr`, wrapper for paramiko method 43 * added :meth:`.truncate`, method returns the new file size 44 * improved DRY'ness of test suite 45 46* 0.2.6 (released 2014-05-17) 47 48 * added ``preserve_mtime`` parameter to :meth:`.put`, optionally updates the remote file's st_mtime to match the local file. 49 * added ``preserve_mtime`` parameter to :meth:`.get`, optionally updates the local file's st_mtime to match the remote file 50 * added :meth:`.exists` and :meth:`.lexists`, use :meth:`.stat` and :meth:`.lstat` respectively 51 * added :meth:`.symlink` 52 * created :meth:`.isdir`, :meth:`.isfile`, :meth:`.makedirs` 53 * added :meth:`.chmod` 54 * added :meth:`.chown` 55 * added :attr:`.sftp_client` which exposes underlying, active ``SFTPClient`` object for advance use 56 57* 0.2.5 (released 2014-05-15) 58 59 * added ``ciphers`` parameter to :class:`.Connection` object (D. Reilly) 60 * added :attr:`.active_ciphers` to return local and remote cipher in use 61 * added :attr:`.security_options`, where you can get available ciphers, among other information 62 * enhanced logging, and added documentation and tests 63 64* 0.2.4 (released 2014-05-13) 65 66 * :class:`.Connection` can be used in a ``with`` statement 67 * add :meth:`.remove` 68 * added support for callback and confirm params to :meth:`.put` 69 * added support for callback on :meth:`.get` 70 * added support for :meth:`.open` 71 * fixed password bug and now differentiates between an empty string and None 72 * added support for ``paramiko.AgentKey`` to be passed in as the ``private_key`` for Connection 73 * added support for :meth:`.mkdir` 74 * added support for :meth:`.rmdir` 75 * added support for :meth:`.stat` and :meth:`.lstat` 76 * added helper function, :func:`.st_mode_to_int`,to convert the ``st_mode`` value back into a common integer representation 77 * added :meth:`.getfo` 78 * added :meth:`.putfo` 79 80* 0.2.3 (released 2014-05-10) 81 82 * host code on pypi to keep pip happy 83 * move code to bitbucket 84 * enhance testing 85 * README.rst and LICENSE named properly 86 * cleaner error handling 87 88* 0.2.2 89 90 * additions 91 92 * chdir(self, path) - change the current working directory on the remote 93 * getcwd(self) - return the current working directory on the remote 94 * listdir(self, path='.')return a list of files for the given path 95