From 5b02896307d0c17432589d80d76e8965171baff8 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Sat, 11 Apr 2009 11:19:06 -0700 Subject: [PATCH] rollback [20090226150237-b2345-1e916a746a7f4627b050f02f0e442fae5caf69d4] for 1.4.0 release; #645 --- src/allmydata/frontends/sftpd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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("/") -- 2.45.2