Cant find a way to open AppData/LocalLow directory
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 'AppD开发者_高级运维ata/LocalLow' user folder?
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.
精彩评论