]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix for bug #645, correct path handling logic so that it works from sshfs
authorAlberto Berti <alberto@metapensiero.it>
Thu, 26 Feb 2009 16:02:37 +0000 (09:02 -0700)
committerAlberto Berti <alberto@metapensiero.it>
Thu, 26 Feb 2009 16:02:37 +0000 (09:02 -0700)
src/allmydata/frontends/sftpd.py

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