Return a Path object pointing to a fresh new temporary directory (which we created ourselves).
(cls, rootdir=None)
| 1261 | |
| 1262 | @classmethod |
| 1263 | def mkdtemp(cls, rootdir=None): |
| 1264 | """Return a Path object pointing to a fresh new temporary directory |
| 1265 | (which we created ourselves). |
| 1266 | """ |
| 1267 | import tempfile |
| 1268 | |
| 1269 | if rootdir is None: |
| 1270 | rootdir = cls.get_temproot() |
| 1271 | path = error.checked_call(tempfile.mkdtemp, dir=str(rootdir)) |
| 1272 | return cls(path) |
| 1273 | |
| 1274 | @classmethod |
| 1275 | def make_numbered_dir( |