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


nsIFileURL


This interface provides access to the underlying nsIFile object corresponding to a URL. The URL scheme need not be file:// since other local protocols may map URLs to files (e.g., resource://). It was extracted from nsIFileChannel.idl. It is scriptable.

Attributes
attribute nsIFileURL::nsIFile file

Gets and sets the nsIFile corresponding to this URL. The getter returns a reference to an immutable object. Callers must clone before attempting to modify the returned nsIFile object.

Note: This constraint might not be enforced at runtime, so beware!!

The setter clones the nsIFile object (allowing the caller to safely modify the nsIFile object after setting it on this interface).


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