- From: Christian Grün <christian.gruen@gmail.com>
- Date: Tue, 11 Jun 2013 13:57:51 +0200
- To: Jostein Austvik Jacobsen <josteinaj@gmail.com>
- Cc: EXPath <public-expath@w3.org>
Dear Jostein, after quite a while, we have now added your proposed functions in BaseX, and we have added an additional function "file:temp-dir" that returns the system’s default temporary-file directory [1]. I hope that we’ll soon manage to add the function signatures in the EXPath File Specification. Best, Christian [1] http://docs.basex.org/wiki/File_Module ___________________________ 2013/1/23 Jostein Austvik Jacobsen <josteinaj@gmail.com>: > The proposed EXProc File Utils steps[1] are pretty similar in functionality > to the EXPath File Module. However, I think the EXPath File Module is > missing one important thing; the ability to create temporary directories > (and files). I'd like to use XPath rather than XProc for this. So how about > something like: > > > file:temp-dir($prefix as xs:string, $suffix as xs:string) as xs:string > file:temp-dir($prefix as xs:string, $suffix as xs:string, $directory as > xs:string) as xs:string > > Creates a temporary directory. The temporary directory is guaranteed not to > already exist when file:temp-dir is called. > If the directory argument is not given, then the directory will be created > inside the system-dependent default temporary-file directory. > The operation will create all non-existing parent directories. > The function returns the absolute URI of the temporary directory. > > > file:temp-file($prefix as xs:string, $suffix as xs:string) as xs:string > file:temp-file($prefix as xs:string, $suffix as xs:string, $directory as > xs:string) as xs:string > > Creates a temporary file. The temporary file is guaranteed not to already > exist when file:temp-file is called. > If the directory argument is not given, then the file will be created inside > the system-dependent default temporary-file directory. > The operation will create all non-existing parent directories. > The function returns the absolute URI of the temporary file. > > > [1] http://exproc.org/proposed/steps/fileutils.html#tempfile > > Jostein
Received on Tuesday, 11 June 2013 11:58:39 UTC