~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-08-06 21:28:34 UTC
  • mfrom: (3608.1.1 push-sftp)
  • Revision ID: pqm@pqm.ubuntu.com-20080806212834-ttevmjkwyafz4qe0
(Christophe Troestler) Add another case for detecting for FileExists
        (bug #123475)

Show diffs side-by-side

added added

removed removed

Lines of Context:
584
584
            if (e.args == ('No such file or directory',) or
585
585
                e.args == ('No such file',)):
586
586
                raise NoSuchFile(path, str(e) + more_info)
587
 
            if (e.args == ('mkdir failed',)):
 
587
            if (e.args == ('mkdir failed',) or
 
588
                e.args[0].startswith('syserr: File exists')):
588
589
                raise FileExists(path, str(e) + more_info)
589
590
            # strange but true, for the paramiko server.
590
591
            if (e.args == ('Failure',)):