rollback [20090226150237-b2345-1e916a746a7f4627b050f02f0e442fae5caf69d4] for 1.4...
authorZooko O'Whielacronx <zooko@zooko.com>
Sat, 11 Apr 2009 18:19:06 +0000 (11:19 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Sat, 11 Apr 2009 18:19:06 +0000 (11:19 -0700)
src/allmydata/frontends/sftpd.py

index 3e5a55e9871ba96fbcc7f878c6321406b36b11be..aa15bbba7db5f1f66974a0fdbd7155d769a8600f 100644 (file)
@@ -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("/")