Bug 17926 – Provide high level wrapper for creating temporary directories and files

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-10-22T15:18:25Z
Last change time
2024-12-01T16:30:59Z
Assigned to
No Owner
Creator
Shriramana Sharma
Moved to GitHub: phobos#10267 →

Comments

Comment #0 by samjnaa — 2017-10-22T15:18:25Z
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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10267 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB