views:

39

answers:

1

I am able to get path to User 'AppData/Local' folder as follows. appdatafile = Components.classes["@mozilla.org/file/directory_service;1"]. getService(Components.interfaces.nsIProperties). get("LocalAppData", Components.interfaces.nsIFile).path;

Can anyone help me to get the 'AppData/LocalLow' user folder?

A: 

There's this trick on top of my head. If your component is installed in user's profile folder of Firefox, you can use built-in __LOCATION__ string to get location of your component and then navigate few folders upwards to get AppData folder.

Mladen Jankovic
There's no space between ____ and LOCATION____, but I had to insert it otherwise this editor interprets it as bold.
Mladen Jankovic