From: Zooko O'Whielacronx Date: Sat, 11 Apr 2009 18:19:06 +0000 (-0700) Subject: rollback [20090226150237-b2345-1e916a746a7f4627b050f02f0e442fae5caf69d4] for 1.4... X-Git-Tag: allmydata-tahoe-1.4.0~14 X-Git-Url: https://git.rkrishnan.org/frontends/listings/copyable-send.py?a=commitdiff_plain;h=5b02896307d0c17432589d80d76e8965171baff8;p=tahoe-lafs%2Ftahoe-lafs.git rollback [20090226150237-b2345-1e916a746a7f4627b050f02f0e442fae5caf69d4] for 1.4.0 release; #645 --- diff --git a/src/allmydata/frontends/sftpd.py b/src/allmydata/frontends/sftpd.py index 3e5a55e9..aa15bbba 100644 --- a/src/allmydata/frontends/sftpd.py +++ b/src/allmydata/frontends/sftpd.py @@ -314,8 +314,9 @@ class SFTPHandler: return d def _convert_sftp_path(self, pathstring): + assert pathstring[0] == "/" pathstring = pathstring.strip("/") - if pathstring == "" or ".": + if pathstring == "": path = [] else: path = pathstring.split("/")