~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: Martin Pool
  • Date: 2006-02-21 06:32:20 UTC
  • mto: This revision was merged to the branch mainline in revision 1569.
  • Revision ID: mbp@sourcefrog.net-20060221063220-73a013b7fd48f00a
MemoryTransport should indicate ENOTEMPTY on rmdir of nonempty, same as unix

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
            self._translate_error(IOError(errno.ENOTDIR, relpath), relpath)
165
165
        for path in self._files:
166
166
            if path.startswith(_abspath):
167
 
                self._translate_error(IOError(errno.EBUSY, relpath), relpath)
 
167
                self._translate_error(IOError(errno.ENOTEMPTY, relpath),
 
168
                                      relpath)
168
169
        for path in self._dirs:
169
170
            if path.startswith(_abspath) and path != _abspath:
170
171
                self._translate_error(IOError(errno.ENOTEMPTY, relpath), relpath)