Hi,

 In a javascript code, I'am trying to use
 nsIMIMEService.GetTypeFromFile(nsIFile).

 I looked in the source, GetTypeFromFile() tries to access
 nsIFile.GetNativeLeafName().

 In my case, this returns "undefined", making GetTypeFromFile()
 fail.

 My nsIFile (which is in fact a nsILocalFile) has been
 correctly initialised, through initWithPath(), and the
 methods "exists()", "isReadable()" etc. return a
 correct result.

 What's going on ?
 I suppose this is a bug of nsIFile, but all the stuff around
 files & url in the Mozilla API is so obscure to me, I'am not sure
 of anything. (In fact I'va never seen an API so complicated to
 work with files and URL in crossplateform way).

 Thanks for input.
  Cedric

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

Reply via email to