First of all I'm new here so please don't be too harsh on me :)
I'm developing an add-on for firefox with SDK. It involves clicking on a button which exports a string to a file. This works fine when the file already exists but when it is created (indirectly) by the click, its rights are set to 000
(or ---------
). If I manually change the permissions with chmod
, then the exportation of the string works fine.
Question: Is there a way to make the add-on create a readable file? (e.g. 660
)
I guess this could be dangerous since you could create executable files on any computer... but there must be a way?!