Fix for bug #645, correct path handling logic so that it works from sshfs

This commit is contained in:
Alberto Berti 2009-02-26 09:02:37 -07:00
parent 9ab4aa9016
commit 3035dfb8ed

View File

@ -314,9 +314,8 @@ class SFTPHandler:
return d
def _convert_sftp_path(self, pathstring):
assert pathstring[0] == "/"
pathstring = pathstring.strip("/")
if pathstring == "":
if pathstring == "" or ".":
path = []
else:
path = pathstring.split("/")