Github user martincgg commented on the pull request:

    https://github.com/apache/cordova-plugin-file/pull/65#issuecomment-49847041
  
    Given some of the variations on valid paths for Windows Phone, when a 
single '/' , '/dir//someDir and '///someDir' are valid paths, however a 
'/someDir' is not.
    However when the native side always returns a fileEntry as '//someDir or 
//someFile.ext, the double slash at the beginning it makes difficult to make a 
combination to get the full path and resolve a relative path(Path.GetFullPath), 
ignoring completely the two points in the path('..'), when more than one slash 
is present at the beginning of the string parent path.
    The RemoveExtraSlash, is a recursive function that removes the extra 
slashes from the beginning of the parent path, returning a proper path in order 
to be combined and resolved to an absolute path.
    
    The Path.GetFullPath it always returns a full path with a drive letter, 
which it will be replaced by the double slash to make it a valid path.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to