~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: Andrew Bennetts
  • Date: 2007-03-13 05:27:12 UTC
  • mto: This revision was merged to the branch mainline in revision 2357.
  • Revision ID: andrew.bennetts@canonical.com-20070313052712-fjpwxnglz6nlmehu
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)