I developed a firefox plugin that store some data in plugin folder. How can I add a backup button, so when user click on it, a save dialog displayed and the folder be packed in a zip file and be stored in user’s desired location?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As it is, the Add-on SDK doesn’t have any modules to write ZIP files. However, with chrome authority you can access the
nsIZipWriterinterface of the underlying platform. For example:This will create a
test.zipfile in the user’s profile directory and writec:\foo.exeinto it. See alsoFileUtilsdocumentation.