You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by de...@apache.org on 2012/05/14 22:10:01 UTC
webworks commit: Prefix file:// protocol for
resolveLocalFileSystemURI if not specified.
Updated Branches:
refs/heads/master cb10d74c2 -> 4f4efb373
Prefix file:// protocol for resolveLocalFileSystemURI if not specified.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/commit/4f4efb37
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/tree/4f4efb37
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/diff/4f4efb37
Branch: refs/heads/master
Commit: 4f4efb3737328f90f8134c291fb75183ca2d1a7d
Parents: cb10d74
Author: Drew Walters <de...@apache.org>
Authored: Mon May 14 15:08:52 2012 -0500
Committer: Drew Walters <de...@apache.org>
Committed: Mon May 14 15:08:52 2012 -0500
----------------------------------------------------------------------
.../src/org/apache/cordova/file/FileManager.java | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/4f4efb37/framework/ext/src/org/apache/cordova/file/FileManager.java
----------------------------------------------------------------------
diff --git a/framework/ext/src/org/apache/cordova/file/FileManager.java b/framework/ext/src/org/apache/cordova/file/FileManager.java
index ea01494..69e5e4a 100644
--- a/framework/ext/src/org/apache/cordova/file/FileManager.java
+++ b/framework/ext/src/org/apache/cordova/file/FileManager.java
@@ -896,6 +896,8 @@ public class FileManager extends Plugin {
else {
FileConnection fconn = null;
try {
+ // Prefix file:// protocol if it doesn't exist.
+ path = FileUtils.prefixFileURI(path);
fconn = (FileConnection) Connector.open(path);
if (fconn.exists()) {
// create a new Entry