开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜