开发者

Cant find a way to open AppData/LocalLow directory

开发者 https://www.devze.com 2022-12-16 17:04 出处:网络
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(\"

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

精彩评论

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