~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

Remove shutil dependency in upgrade - create a delete_tree method for transports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
563
563
        except (IOError, paramiko.SSHException), e:
564
564
            self._translate_io_exception(e, path, ': failed to list_dir')
565
565
 
 
566
    def rmdir(self, relpath):
 
567
        """See Transport.rmdir."""
 
568
        path = self._remote_path(relpath)
 
569
        try:
 
570
            return self._sftp.rmdir(path)
 
571
        except (IOError, paramiko.SSHException), e:
 
572
            self._translate_io_exception(e, path, ': failed to rmdir')
 
573
 
566
574
    def stat(self, relpath):
567
575
        """Return the stat information for a file."""
568
576
        path = self._remote_path(relpath)