Skip to content

Commit

Permalink
Got requestFileSystem kinda working
Browse files Browse the repository at this point in the history
  • Loading branch information
timkim committed May 3, 2012
1 parent aa820f9 commit 1ed4ec4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/common/plugin/DirectoryReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
};

Expand Down
2 changes: 2 additions & 0 deletions lib/common/plugin/FileEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
};


Expand Down
2 changes: 2 additions & 0 deletions lib/common/plugin/FileSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
Expand Down
4 changes: 3 additions & 1 deletion lib/playbook/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ module.exports = {
requestFileSystem:{
path: 'cordova/plugin/playbook/requestFileSystem'
},
FileReader:{
path: 'cordova/plugin/playbook/FileReader'
},
FileWriter:{
path: 'cordova/plugin/playbook/FileWriter'
}
Expand All @@ -20,7 +23,6 @@ module.exports = {
}
}
},

DirectoryEntry: {
path: 'cordova/plugin/playbook/DirectoryEntry'
},
Expand Down

0 comments on commit 1ed4ec4

Please sign in to comment.