[Project_owners] nsIIOService

Neil neil at parkwaycc.co.uk
Wed Oct 12 11:35:29 EDT 2005


Luca Minuti wrote:

>    var referrer = Components.classes["@mozilla.org/network/io-service;1"]
>                             .getService(Components.interfaces.nsIIOService)
>                             .newURI(fullpath.value, null, null);
>
>I don't know exactly the contents of fullpath.value but should be a directory path.
>
As in, a directory on the local filesystem? For that you should create 
an nsILocalFile and then use newFileURI, or if you're using a filepicker 
to get the directory then use its fileURL property directly.


More information about the Project_owners mailing list