Andrey, On Apr 16, 2014, at 3:21 AM, Андрей Парамонов <[email protected]> wrote:
> Hello! > > Many (all?) contemporary OSes have notion of "Temporary file" -- a file that > is automatically deleted when the last handle to it is closed (see > http://man7.org/linux/man-pages/man3/tmpfile.3.html, > FILE_FLAG_DELETE_ON_CLOSE in > http://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx). > > Currently it is not possible to specify that FH5Fcreate should open the file > as temporary, nor it is possible to pass existing file handle. However I > believe that temp HDF5 files would be valuable feature: > 1) Robust: file is deleted even if program crashes/ends unexpectedly. > 2) Easy-to-use: file is deleted when but not earlier than the last reference > to a file object is closed. > > Are there any plans to support temp files in HDF5 library, or maybe there is > already some way to create them in released version? > There is no way to create such files in the current released versions, but it would not be hard to modify existing file driver(s) if you decide to do it yourself. We got a related request to provide an option for opening a file using mkstemp. I added your request to it [JIRA (HDFFV-8703)]. There are no immediate plans to implement the feature, but hopefully, it will get enough momentum at some point and we will add it, or someone will contribute a patch. Regards, Elena ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Elena Pourmal The HDF Group http://hdfgroup.org 1800 So. Oak St., Suite 203, Champaign IL 61820 217.531.6112 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Best wishes, > Andrey Paramonov > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > _______________________________________________ > Hdf-forum is for HDF software users discussion. > [email protected] > http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
