nsIFileUtilities

 

The nsIFileUtilities interface provides access to random file operations.


Please add a summary to this article.
  Last changed in Gecko 1.9 (Firefox 3)

Inherits from: nsISupports

Method overview

void getProgramPath(out constCharPtr aProgramPath);
void getTempDirPath(out constCharPtr aTempDirPath);
void newTempFileName(in string aPrefix, in unsigned long aLength, in charPtr aBuffer);

Methods

getProgramPath()

Returns the name of the browser executable program.

 void getProgramPath(
   out constCharPtr aProgramPath
 );
Parameters
aProgramPath
The returned path to the program
Return value

NS_OK if this operation was successful.

getTempDirPath()

Returns the name of the temporary directory.

 void getTempDirPath(
   out constCharPtr aTempDirPath
 );
Parameters
aTempDirPath

The returned path to the temp directory

Return value

NS_OK if this operation was successful.

newTempFileName()

Returns a unique temporary file name.

 void newTempFileName(
   in string aPrefix, 
   in unsigned long aLength, 
   in charPtr aBuffer
 );
Parameters
aPrefix
A string to prefix to the temporary file name.
aLength
The length of the resulting buffer to receive the data.
aBuffer
The returned temp file name.
Return value

NS_OK if this operation was successful.

Document Tags and Contributors

Contributors to this page: Sheppy, trevorh, MarkFinkle, Ayhfung
Last updated by: Sheppy,