Implemented by
- @mozilla.org/file/directory_service;1
- @mozilla.org/browser/directory-provider;1
- @mozilla.org/spellcheck/dir-provider;1
nsIDirectoryServiceProvider2 An extension of nsIDirectoryServiceProvider which allows multiple files to be returned for the given key. @status FROZEN
[scriptable, uuid(2f977d4b-5485-11d4-87e2-0010a4e75ef2)]
interface nsIDirectoryServiceProvider2 : nsIDirectoryServiceProvider
Methods
getFiles
Directory Service calls this when it gets a request for
a prop and the requested type is nsISimpleEnumerator.
@param prop The symbolic name of the file list.
@return An enumerator for a list of file locations.
The elements in the enumeration are nsIFile
@returnCode NS_SUCCESS_AGGREGATE_RESULT if this result should be
aggregated with other "lower" providers.
nsISimpleEnumerator
getFiles(in string prop)
Compare to: