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.

nsIFileURL

IID:d26b2e2e-1dd1-11b2-88f3-8545a7ba7949
Inherits From:nsIURL
Status:FROZEN

nsIFileURL provides access to the underlying nsIFile object corresponding to an URL. The URL scheme need not be file:, since other local protocols may map URLs to files (e.g., resource:).

An object of this interface should be created in the following way:

ioService.newFileURI(file);

Properties

nsIFile file

Get/Set nsIFile corresponding to this URL.

- 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!!

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


References

This interface is the type of the following properties:

nsIFilePicker.fileURL

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com