@contextmanager
    def tempdir(self):
        dir = self.path(mkdtemp())  # @ReservedAssignment
        try:
            yield dir
        finally:
            dir.delete()
A context manager that creates a temporary directory, which is removed when the context
dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/machines/local.py/LocalMachine.tempdir