David Normington created CB-7294:
------------------------------------

             Summary: File plugin: getParent returns same entry
                 Key: CB-7294
                 URL: https://issues.apache.org/jira/browse/CB-7294
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 3.5.0
         Environment: Nexus 7 (2013) - Android 4.4.2
Mac OS X 10.9.4
            Reporter: David Normington
            Priority: Minor


{code:javascript}
window.resolveLocalFileSystemURL('cdvfile://localhost/persistent/DirIAdded/', 
   function(dir){
      dir.getParent(function(parent){
         console.log(parent);
      });
   }
);
{code}

The above code logs the DirectoryEntry for DirIAdded when it should log the 
parent directory of DirIAdded. If you then run the same code but remove the 
last slash from the end of the URL, the code works fine. 

Checked on iOS 7 and there are no problems with a trailing slash or not.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to