Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
Merge pull request #245 from haliphax/sftp-uploaddir-check-fix
Browse files Browse the repository at this point in the history
fixed _is_uploaddir check
  • Loading branch information
haliphax committed Feb 10, 2015
2 parents f33c654 + ee01db9 commit 05f5c5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion x84/sftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. """
Expand Down

0 comments on commit 05f5c5f

Please sign in to comment.