diff --git a/CHANGES b/CHANGES index c9f8be99..802beb45 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,6 @@ 2.0.4 + - bugfix: sftp server was not properly comparing the current path against the + __uploads__ directory - bugfix: sesame did not honor want_cols/rows when the given terminal size was already of its exact dimensions. diff --git a/x84/sftp.py b/x84/sftp.py index 49ee6f4e..701c9847 100644 --- a/x84/sftp.py +++ b/x84/sftp.py @@ -116,7 +116,7 @@ def _realpath(self, path): def _is_uploaddir(self, path): """ Check if this is the upload directory. """ - return ('/{0}'.format(path) == uploads_dirname) + return (path == '/{0}'.format(uploads_dirname)) def list_folder(self, path): """ List contents of a folder. """