

def make_tempdir(parent=None):
    'Creates a temporary directory and returns the path.\n\n    The path is stored in an array for later cleanup.\n    '
    tmpdir = tempfile.mkdtemp(dir=parent)
    tempdirs.append(tmpdir)
    return tmpdir

dataset/ETHPy150Open reviewboard/rbtools/rbtools/utils/filesystem.py make_tempdir/original