/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

Merge bzr.dev (and fix NEWS)

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."""