I am trying to get to an nsILocalFile in an installed extension. The only thing I know is it's GUID and chrome URI.

Is it acceptable to:

var f = nsIProperties.get( 'ProfD',Components.interfaces.nsILocalFile );
f.append( "extensions/{GUID}/defaults/file.foo" );

The docs do make it quite clear that strings are not the correct way to access paths, but this is the only way I seem to be able to get at it.



Cheers,

N


--

Neil Stansbury
www.RedbackSystems.com
_____________________________
Next Generation Web Platforms
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to