cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From martincgg <>
Subject [GitHub] cordova-plugin-file pull request: CB-6923 [WP8] Adding support to ...
Date Wed, 23 Jul 2014 08:37:33 GMT
Github user martincgg commented on the pull request:
    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
    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 or file a JIRA ticket
with INFRA.

View raw message