C.S. wrote:
Moz 1.5/W2K.NS_ERROR_FAILURE, I should restore the code to getthe whole message. tomorrow.

Which extension does your file use? A more likely cause for your error seems to be that the file just has no extension.


There is a property "nativeLeafName" (readonly) on the nsIFile interface( cf. XULPlanet). I try to access this property in my JS code, I suppose it maps to the GetNativeLeafName method.

It would, but it's noscript. As I (and bsmedberg) said, this attribute is not accessible from javascript.


Anyway, GetTypeFromFile seems to only try to get the extension ofthe file. Thus, why trying to get nativeLeafName instead of leafName,or both ?

I can not imagine that using leafName would make your problem any better.



_______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to