rollback [20090226150237-b2345-1e916a746a7f4627b050f02f0e442fae5caf69d4] for 1.4.0 release; #645

This commit is contained in:
Zooko O'Whielacronx 2009-04-11 11:19:06 -07:00
parent 69efdb5b2a
commit 5b02896307

View File

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