You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/06/19 02:29:18 UTC
git commit: updated references
Updated Branches:
refs/heads/master 9d572f2c2 -> a8c830805
updated references
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/a8c83080
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/a8c83080
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/a8c83080
Branch: refs/heads/master
Commit: a8c83080524d4ea587f3f25e757fee7d379640ef
Parents: 9d572f2
Author: Steven Gill <st...@gmail.com>
Authored: Tue Jun 18 17:29:13 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Tue Jun 18 17:29:13 2013 -0700
----------------------------------------------------------------------
www/DirectoryEntry.js | 2 +-
www/DirectoryReader.js | 4 ++--
www/Entry.js | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/a8c83080/www/DirectoryEntry.js
----------------------------------------------------------------------
diff --git a/www/DirectoryEntry.js b/www/DirectoryEntry.js
index 985d0c8..4c1e088 100644
--- a/www/DirectoryEntry.js
+++ b/www/DirectoryEntry.js
@@ -93,7 +93,7 @@ DirectoryEntry.prototype.removeRecursively = function(successCallback, errorCall
DirectoryEntry.prototype.getFile = function(path, options, successCallback, errorCallback) {
argscheck.checkArgs('sOFF', 'DirectoryEntry.getFile', arguments);
var win = successCallback && function(result) {
- var FileEntry = require('cordova/plugin/FileEntry');
+ var FileEntry = require('org.apache.cordova.core.FileUtils.FileEntry');
var entry = new FileEntry(result.name, result.fullPath);
successCallback(entry);
};
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/a8c83080/www/DirectoryReader.js
----------------------------------------------------------------------
diff --git a/www/DirectoryReader.js b/www/DirectoryReader.js
index 0121fc3..d44acd2 100644
--- a/www/DirectoryReader.js
+++ b/www/DirectoryReader.js
@@ -41,10 +41,10 @@ DirectoryReader.prototype.readEntries = function(successCallback, errorCallback)
for (var i=0; i<result.length; i++) {
var entry = null;
if (result[i].isDirectory) {
- entry = new (require('cordova/plugin/DirectoryEntry'))();
+ entry = new (require('org.apache.cordova.core.FileUtils.DirectoryEntry'))();
}
else if (result[i].isFile) {
- entry = new (require('cordova/plugin/FileEntry'))();
+ entry = new (require('org.apache.cordova.core.FileUtils.FileEntry'))();
}
entry.isDirectory = result[i].isDirectory;
entry.isFile = result[i].isFile;
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/a8c83080/www/Entry.js
----------------------------------------------------------------------
diff --git a/www/Entry.js b/www/Entry.js
index 5b6ba9e..f0d8b32 100644
--- a/www/Entry.js
+++ b/www/Entry.js
@@ -107,7 +107,7 @@ Entry.prototype.moveTo = function(parent, newName, successCallback, errorCallbac
if (entry) {
if (successCallback) {
// create appropriate Entry object
- var result = (entry.isDirectory) ? new (require('cordova/plugin/DirectoryEntry'))(entry.name, entry.fullPath) : new (require('cordova/plugin/FileEntry'))(entry.name, entry.fullPath);
+ var result = (entry.isDirectory) ? new (require('org.apache.cordova.core.FileUtils.DirectoryEntry'))(entry.name, entry.fullPath) : new (require('org.apache.cordova.core.FileUtils.FileEntry'))(entry.name, entry.fullPath);
successCallback(result);
}
}
@@ -148,7 +148,7 @@ Entry.prototype.copyTo = function(parent, newName, successCallback, errorCallbac
if (entry) {
if (successCallback) {
// create appropriate Entry object
- var result = (entry.isDirectory) ? new (require('cordova/plugin/DirectoryEntry'))(entry.name, entry.fullPath) : new (require('cordova/plugin/FileEntry'))(entry.name, entry.fullPath);
+ var result = (entry.isDirectory) ? new (require('org.apache.cordova.core.FileUtils.DirectoryEntry'))(entry.name, entry.fullPath) : new (require('org.apache.cordova.core.FileUtils.FileEntry'))(entry.name, entry.fullPath);
successCallback(result);
}
}
@@ -207,7 +207,7 @@ Entry.prototype.remove = function(successCallback, errorCallback) {
Entry.prototype.getParent = function(successCallback, errorCallback) {
argscheck.checkArgs('FF', 'Entry.getParent', arguments);
var win = successCallback && function(result) {
- var DirectoryEntry = require('cordova/plugin/DirectoryEntry');
+ var DirectoryEntry = require('org.apache.cordova.core.FileUtils.DirectoryEntry');
var entry = new DirectoryEntry(result.name, result.fullPath);
successCallback(entry);
};