www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17926] New: Provide high level wrapper for creating temporary

https://issues.dlang.org/show_bug.cgi?id=17926

          Issue ID: 17926
           Summary: Provide high level wrapper for creating temporary
                    directories and files
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: samjnaa gmail.com

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/lavduxqgpemvwnxrmqvu forum.dlang.org) although no
enhancement request seems to have been filed. This request fills that need.

--
Oct 22