incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Maj <>
Subject Re: [CordovaJS] File API: DirectoryEntry and exec
Date Wed, 30 May 2012 17:57:46 GMT
Anis, how is this going for you? Still having issues?

On 5/22/12 1:02 AM, "Anis KADRI" <> wrote:

>Hi all,
>I am trying to implement the File API for bada 2.0 however I have been
>running into this problem and I haven't been able to solve it.
>Whenever I run exec for any method of DirectoryEntry I get the following
>TypeError: '[object Object]' is not a function (evaluating 'exec(win,
>"File", "getFile", [this.fullPath, path, options])')
>The reason is that exec is for some reason equal to the empty object {}.
>I believe the build method is not working properly and is leaving
>module.exports to {} in this case.
>If I redefine exec like so:
>var exec = require('cordova/exec');
>Right before I call it in any of the DirectoryEntry methods then it works
>Does anyone know what might be going on ?
>The weird thing is that this TypeError only happens for DirectoryEntry and
>not for any other modules. I use exec everywhere else just fine.
>Any help really appreciated! I wasted way too much time on this...

View raw message