Titanium Appcelerator zipfile module: extract method that works for 1.8


/ Published in: JavaScript
Save to your folder(s)

How to get extract method for zipfile module to work with Ti 1.8 sdk.


Copy this code and paste it in your HTML
  1. var appDir = Ti.Network.decodeURIComponent(
  2. Ti.Filesystem.applicationDataDirectory).replace(
  3. 'file://localhost', '');
  4. zipfile.extract(appDir+'Archive.zip', appDir);

URL: http://lancespellman.com/2012/01/17/titanium-appcelerator-and-zipfile-module/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.