P.S. I am trying to create a firefox extension, and this is suppose to be in
the initialization code.

Thanks

On 7/12/07, Lei Sun wrote:
>
> Hi Guys,
>
> I am created file according to
>
> var file = Components.classes["@mozilla.org/file/directory_service;1"]
> .getService(Components.interfaces.nsIProperties)
>
> .get("ProfD", Components.interfaces.nsIFile);
> file.append(*"DIR"*);
> if( !file.exists() || !file.isDirectory() ) { // if it doesn't exist, create
> file.create(
> Components.interfaces.nsIFile.DIRECTORY_TYPE, 0664);
> }
>
> from http://developer.mozilla.org/en/docs...ppets:File_I/O
>
> I am able to create the file, but I am not able to access it using 'cd' or
> 'ls' or from konqueror
>
> My environment is kubuntu 6.04
>
> Anyone knows what's going on? Any help or direction will be greatly
> appreciated!
>
> Thanks!
>
> Lei
>