~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-28 16:32:15 UTC
  • mfrom: (1963 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1964.
  • Revision ID: john@arbash-meinel.com-20060828163215-b65427b0394f3a6e
[merge] bzr.dev 1963

Show diffs side-by-side

added added

removed removed

Lines of Context:
608
608
        """Walk the relative paths of all files in this transport."""
609
609
        queue = list(self.list_dir('.'))
610
610
        while queue:
611
 
            relpath = urllib.quote(queue.pop(0))
 
611
            relpath = queue.pop(0)
612
612
            st = self.stat(relpath)
613
613
            if stat.S_ISDIR(st.st_mode):
614
614
                for i, basename in enumerate(self.list_dir(relpath)):
722
722
        Return a list of all files at the given location.
723
723
        """
724
724
        # does anything actually use this?
 
725
        # -- Unknown
 
726
        # This is at least used by copy_tree for remote upgrades.
 
727
        # -- David Allouche 2006-08-11
725
728
        path = self._remote_path(relpath)
726
729
        try:
727
 
            return self._sftp.listdir(path)
 
730
            entries = self._sftp.listdir(path)
728
731
        except (IOError, paramiko.SSHException), e:
729
732
            self._translate_io_exception(e, path, ': failed to list_dir')
 
733
        return [urlutils.escape(entry) for entry in entries]
730
734
 
731
735
    def rmdir(self, relpath):
732
736
        """See Transport.rmdir."""