Skip to content

Debugmessage 'Can't find zip file' #8

@calibanatspace

Description

@calibanatspace

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions