incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim...@apache.org
Subject [17/19] js commit: Got requestFileSystem kinda working
Date Thu, 17 May 2012 22:37:08 GMT
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/1ed4ec4b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/1ed4ec4b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/1ed4ec4b

Branch: refs/heads/playbookFile
Commit: 1ed4ec4b9991fa3ab7806a0f9be8680c9155a746
Parents: aa820f9
Author: Tim Kim <timk@adobe.com>
Authored: Thu May 3 13:27:53 2012 -0700
Committer: Tim Kim <timk@adobe.com>
Committed: Thu May 3 13:27:53 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/1ed4ec4b/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/1ed4ec4b/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/1ed4ec4b/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/1ed4ec4b/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'
         },


Mime
View raw message