~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
        from bzrlib.lock import WriteLock
248
248
        return WriteLock(self.abspath(relpath))
249
249
 
 
250
    def rmdir(self, relpath):
 
251
        """See Transport.rmdir."""
 
252
        path = relpath
 
253
        try:
 
254
            path = self.abspath(relpath)
 
255
            os.rmdir(path)
 
256
        except (IOError, OSError),e:
 
257
            self._translate_error(e, path)
250
258
 
251
259
class ScratchTransport(LocalTransport):
252
260
    """A transport that works in a temporary dir and cleans up after itself.