You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.


TOC PREV NEXT INDEX

Embedding Gecko API


nsIDirectoryServiceProvider


This interface is used by Directory Service to get file locations. It is scriptable.

Methods
getFile

Provides DirectoryService with a prop on the first request or on every request if the prop is not persistent.

Syntax:

nsIFile nsIDirectoryServiceProvider::getFile(
	in string prop, out PRBool persistent) 

Parameters:

prop: The symbolic name of the file.
persistent: [out] If TRUE, the returned file will be cached by Directory Service. Subsequent requests for this prop will bypass the provider and use the cache. If FALSE, the provider will be asked for this prop each time it is requested.

Returns:

The file represented by the property.

Written by:Ellen Evans | Comments, questions, complaints? Bug 143387
TOC PREV NEXT INDEX