~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-14 01:56:49 UTC
  • mfrom: (2338.5.1 memory-transport-rmdir)
  • Revision ID: pqm@pqm.ubuntu.com-20070314015649-ea459482fb1d053d
(Andrew Bennetts) Fix bug in MemoryTransport.rmdir.

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
        if _abspath in self._files:
193
193
            self._translate_error(IOError(errno.ENOTDIR, relpath), relpath)
194
194
        for path in self._files:
195
 
            if path.startswith(_abspath):
 
195
            if path.startswith(_abspath + '/'):
196
196
                self._translate_error(IOError(errno.ENOTEMPTY, relpath),
197
197
                                      relpath)
198
198
        for path in self._dirs:
199
 
            if path.startswith(_abspath) and path != _abspath:
 
199
            if path.startswith(_abspath + '/') and path != _abspath:
200
200
                self._translate_error(IOError(errno.ENOTEMPTY, relpath), relpath)
201
201
        if not _abspath in self._dirs:
202
202
            raise NoSuchFile(relpath)