184
edits
| Line 36: | Line 36: | ||
== Access a file or a directory == | == Access a file or a directory == | ||
/** | /** | ||
* Create a temporary directory. | * Create a temporary file in the system-defined temporary directory (if it exists). This file is deleted when the process closes or when the file is closed, whichever happens first. | ||
* | * | ||
* @param {string=} name An optional name that can be used for debugging purposes as a template for the name of the file created. | |||
*/ | |||
* @ | createTempFile: function(name) { | ||
*/ | //Unix: uses cached [nsIDirectoryService] to get temporary directoy, [mkstemp] and [this.openFile] | ||
//Windows: uses cached [nsIDirectoryService] to get temporary directory, [GetTempFileName] + [CreateFile] http://msdn.microsoft.com/en-us/library/windows/desktop/aa363875%28v=vs.85%29.aspx | |||
//Unix: | |||
//Windows: [ | |||
}, | }, | ||
== General utilities == | == General utilities == | ||
edits