incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deedu...@apache.org
Subject webworks commit: Prefix file:// protocol for resolveLocalFileSystemURI if not specified.
Date Mon, 14 May 2012 20:10:01 GMT
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 <deedubbu@apache.org>
Authored: Mon May 14 15:08:52 2012 -0500
Committer: Drew Walters <deedubbu@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


Mime
View raw message