~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: Robert Collins
  • Date: 2005-10-30 17:32:20 UTC
  • Revision ID: robertc@robertcollins.net-20051030173220-0a4a8cf5dbde6673
Bugfix: SFTP had index errors walking up to the root path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
                basepath.append(p)
149
149
 
150
150
        path = '/'.join(basepath)
151
 
        if path[0] != '/':
 
151
        if len(path) and path[0] != '/':
152
152
            path = '/' + path
153
153
        return path
154
154