Hi,
I tried to use the module but it looks like the module can't find the zip file. I get the following messages in the Titanium console, if I start the app in the iOS simulator:
[INFO] [object ZipfileModule] loaded
[DEBUG] loading: /Users/calibanatspace/Documents/Titanium Studio Workspace/UEGW 2011/Resources/zipfile.js, resource: Users/calibanatspace/Documents/Titanium Studio Workspace/UEGW 2011/Resources/zipfile_js
[DEBUG] Can't find zip file
[DEBUG] can't open zip
I've tried it with SDK 1.7.2 and 1.8.0.xxx.
I've tested with code if the zip file is readable:
function extractZipFile( filePath )
{
var LOG_TAG = 'extractZipFile( filePath )';
log( 'filePath: ' + filePath, LOG_TAG );
var testfile = Ti.Filesystem.getFile( filePath );
if( testfile.exists() )
{
log( 'nativePath: ' + testfile.nativePath, LOG_TAG );
log( 'length: ' + testfile.read().length, LOG_TAG );
}
var zipfile = require("zipfile");
zipfile.extract( filePath, Ti.Filesystem.applicationDataDirectory );
}
The output in the console:
[INFO] extractZipFile( filePath ): filePath: file://localhost/Users/calibanatspace/Library/Application%20Support/iPhone%20Simulator/4.3/Applications/916D28F8-266C-42F6-AF49-8F1419148794/UEGW%202011.app/data/program/sessions.xml.zip
[INFO] extractZipFile( filePath ): nativePath: file://localhost/Users/calibanatspace/Library/Application%20Support/iPhone%20Simulator/4.3/Applications/916D28F8-266C-42F6-AF49-8F1419148794/UEGW%202011.app/data/program/sessions.xml.zip
[INFO] extractZipFile( filePath ): length: 139433
[INFO] [object ZipfileModule] loaded
[DEBUG] loading: /Users/calibanatspace/Library/Application Support/iPhone Simulator/4.3/Applications/916D28F8-266C-42F6-AF49-8F1419148794/UEGW 2011.app/zipfile.js, resource: zipfile_js
[DEBUG] Can't find zip file
[DEBUG] can't open zip
Anyone could provide hints what is wrong?
Regards, Jochen
Hi,
I tried to use the module but it looks like the module can't find the zip file. I get the following messages in the Titanium console, if I start the app in the iOS simulator:
I've tried it with SDK 1.7.2 and 1.8.0.xxx.
I've tested with code if the zip file is readable:
The output in the console:
Anyone could provide hints what is wrong?
Regards, Jochen