This content has been marked as final. Show 5 replies
Hi, Thanx for the answer.
I am trying to create a backup function for my air project. So i want to zip all the files and folders in the applicationstorage dir.
Is fzip capable to take all files and folders and output a zip file of it?
If it can.. an example would be nice :-)
You use methods like addFile() to build a zip. FZip comes with ASDoc so you can quickly see how it's done.
Hi there, I solved my problem so here the answer to that.
I used the create zip classes from this link: http://nochump.com/blog/?p=15
Because there were some nice examples on how to use it.
The example shows a backup system for the applicationstoragedirectory (air only)
air project name: backup_appstordir.
in the folder src we have the following folders:
Zip - in this folder the zip related as files that you can download from the given link.
backup_appstordir.mxml - File with 2 buttons so you can create a zip backup and restore it.
createbackup.as - file that handles the creation of a backup.zip
restorebackup.as - file that places the files back to the applicationstoragedirectory.
And now the source: