Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB4439FBC for ; Thu, 7 Jun 2012 20:40:45 +0000 (UTC) Received: (qmail 71818 invoked by uid 500); 7 Jun 2012 20:40:45 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 71773 invoked by uid 500); 7 Jun 2012 20:40:45 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 70934 invoked by uid 99); 7 Jun 2012 20:40:44 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2012 20:40:44 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id AC95710B3B; Thu, 7 Jun 2012 20:40:44 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: timkim@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [48/48] js commit: Got requestFileSystem kinda working Message-Id: <20120607204044.AC95710B3B@tyr.zones.apache.org> Date: Thu, 7 Jun 2012 20:40:44 +0000 (UTC) Got requestFileSystem kinda working Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/67b2dc16 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/67b2dc16 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/67b2dc16 Branch: refs/heads/master Commit: 67b2dc16a9cdc7b236fed36c8da523054217dafd Parents: 3dec949 Author: Tim Kim Authored: Thu May 3 13:27:53 2012 -0700 Committer: Tim Kim Committed: Thu Jun 7 13:40:21 2012 -0700 ---------------------------------------------------------------------- lib/common/plugin/DirectoryReader.js | 1 + lib/common/plugin/FileEntry.js | 2 ++ lib/common/plugin/FileSystem.js | 2 ++ lib/playbook/platform.js | 4 +++- 4 files changed, 8 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/67b2dc16/lib/common/plugin/DirectoryReader.js ---------------------------------------------------------------------- diff --git a/lib/common/plugin/DirectoryReader.js b/lib/common/plugin/DirectoryReader.js index 4db0600..0593287 100644 --- a/lib/common/plugin/DirectoryReader.js +++ b/lib/common/plugin/DirectoryReader.js @@ -36,6 +36,7 @@ DirectoryReader.prototype.readEntries = function(successCallback, errorCallback) var fail = typeof errorCallback !== 'function' ? null : function(code) { errorCallback(new FileError(code)); }; + console.log('directory entry'); exec(win, fail, "File", "readEntries", [this.path]); }; http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/67b2dc16/lib/common/plugin/FileEntry.js ---------------------------------------------------------------------- diff --git a/lib/common/plugin/FileEntry.js b/lib/common/plugin/FileEntry.js index fb6cfaa..2e41888 100644 --- a/lib/common/plugin/FileEntry.js +++ b/lib/common/plugin/FileEntry.js @@ -56,7 +56,9 @@ FileEntry.prototype.file = function(successCallback, errorCallback) { var fail = typeof errorCallback !== 'function' ? null : function(code) { errorCallback(new FileError(code)); }; + console.log('this is messing it up'); exec(win, fail, "File", "getFileMetadata", [this.fullPath]); + console.log('ya'); }; http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/67b2dc16/lib/common/plugin/FileSystem.js ---------------------------------------------------------------------- diff --git a/lib/common/plugin/FileSystem.js b/lib/common/plugin/FileSystem.js index 2ae64ae..af28bc5 100644 --- a/lib/common/plugin/FileSystem.js +++ b/lib/common/plugin/FileSystem.js @@ -10,6 +10,8 @@ var DirectoryEntry = require('cordova/plugin/DirectoryEntry'); var FileSystem = function(name, root) { this.name = name || null; if (root) { + console.log('root.name ' + name); + console.log('root.root ' + root); this.root = new DirectoryEntry(root.name, root.fullPath); } }; http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/67b2dc16/lib/playbook/platform.js ---------------------------------------------------------------------- diff --git a/lib/playbook/platform.js b/lib/playbook/platform.js index a721c1e..dd73a54 100644 --- a/lib/playbook/platform.js +++ b/lib/playbook/platform.js @@ -8,6 +8,9 @@ module.exports = { requestFileSystem:{ path: 'cordova/plugin/playbook/requestFileSystem' }, + FileReader:{ + path: 'cordova/plugin/playbook/FileReader' + }, FileWriter:{ path: 'cordova/plugin/playbook/FileWriter' } @@ -20,7 +23,6 @@ module.exports = { } } }, - DirectoryEntry: { path: 'cordova/plugin/playbook/DirectoryEntry' },