On Mon, Jan 17, 2005 at 03:44:54PM +0000, Patient Guy wrote:
> This was so because fname is the string ".", and apparently this is not 
> allowed, which seems odd, because if access is being granted to the file 
> system at any part of the hierarchy, how is accessing the current directory 
> a security problem?

Passing relative paths to nsILocalFile.initWithPath is not supported.

> QUESTION:  How do I get the file object to be a directory that is set to 
> the current directory?

Not sure if you can, but why do you want something that is often the
installation directory of mozilla?

>         Error: uncaught exception: Permission denied to get property 
>                  UnnamedClass.directoryEntries

Is this in the same function that called enablePrivilege? It has to
be...

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

Reply via email to