()
Execute a block in a temporary directory and remove the directory and
    its contents at the end of the with block.

    YIELDS (Path): The path of the temp directory.
Execute a block in a temporary directory and remove the directory and
    its contents at the end of the with block.
Execute a block in a temporary directory and remove the directory and its contents at the end of the with block .
def make_tempdir():
    """Execute a block in a temporary directory and remove the directory and
    its contents at the end of the with block.

    YIELDS (Path): The path of the temp directory.
    """
    d = Path(tempfile.mkdtemp())
    yield d
    shutil.rmtree(str(d))
def make_tempdir ( ) : d = Path ( tempfile . mkdtemp ( ) ) yield d shutil . rmtree ( str ( d ) )