def mktemp(self, basename, numbered=True):
if not numbered:<EOL><INDENT>p = self.getbasetemp().joinpath(basename)<EOL>p.mkdir()<EOL><DEDENT>else:<EOL><INDENT>p = make_numbered_dir(root=self.getbasetemp(), prefix=basename)<EOL>self._trace("<STR_LIT>", p)<EOL><DEDENT>return p<EOL>
makes a temporary directory managed by the factory