WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIFileUtilities

IID:89a31ce0-019a-11d2-815b-006008119d7a
Inherits From:nsISupports

The nsIFileUtilities interface provides access to random file operations. To obtain: QueryInterface on nsIPluginManager.


Methods

void getProgramPath ( out constCharPtr* programPath ) void getTempDirPath ( out constCharPtr* tempDirPath ) void newTempFileName ( char* prefix , PRUint32 length , charPtr* buffer )

void getProgramPath ( out constCharPtr* programPath )

Returns the name of the browser executable program.

Arguments:
programPath: - the returned path to the program

void getTempDirPath ( out constCharPtr* tempDirPath )

Returns the name of the temporary directory.

Arguments:
tempDirPath: - the returned path to the temp directory

void newTempFileName ( char* prefix , PRUint32 length , charPtr* buffer )

Returns a unique temporary file name.

Arguments:
prefix: - a string to prefix to the temporary file name
length: - the length of the resulting buffer to receive the data
buffer: - the returned temp file name

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com