You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Avdonin (JIRA)" <ji...@apache.org> on 2014/10/27 22:06:33 UTC

[jira] [Created] (CB-7883) toURL() returns invalid URL values on windows

Vladimir Avdonin created CB-7883:
------------------------------------

             Summary: toURL() returns invalid URL values on windows
                 Key: CB-7883
                 URL: https://issues.apache.org/jira/browse/CB-7883
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin File, Windows
    Affects Versions: 4.0.0
            Reporter: Vladimir Avdonin


toURL method called on etnries returned by resolveLocalFileSystemURL and getDirectory produces path instead of URL. Note also inconsistent use of forward/backward slash separator in test output below.

Below is test program and its output, demonstrating the problem:
{code}
-----------------test program-----------------------
window.resolveLocalFileSystemURL(
	'file:///',
	function(entry) {
		console.log('Root URL is '+entry.toURL());
		entry.getDirectory(
			'Subdir',
			{create:true},
			function(entry1) {
				console.log('Subdir URL is '+entry1.toURL());
			},
			function(err) { console.log(err); }
		);
	},
	function(err) { console.log(err); }
);
-------------output------------------------
Root URL is C:/Users/vladimir/AppData/Local/Packages/com.example.hello_dsh9t8a1qg3mw/LocalState/
Subdir URL is C:\Users\vladimir\AppData\Local\Packages\com.example.hello_dsh9t8a1qg3mw\LocalState\Subdir/
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org