Currently there is only File.tmpfile() for creating temporary files. This is not terribly useful. A high level interface for creating temporary files and directories a la mkstemp and mkdtemp would be very useful. For example, mkstemp, mkdtemp and allied functions are provided by Python: https://docs.python.org/3/library/tempfile.html
Users have expressed interest in such an interface (http://forum.dlang.org/post/[email protected]) although no enhancement request seems to have been filed. This request fills that need.
Comment #1 by samjnaa — 2017-10-23T01:46:28Z
Related: bug #17912 and #14599
Comment #2 by robert.schadek — 2024-12-01T16:30:59Z