Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6923

[WP8][cordova-plugin-file] native side does not support relative paths

    XMLWordPrintableJSON

Details

    Description

      The filesystem URIs on WP8, is not able to handle the resolve navigation a parent directory using a relative path, e.g.:
      fileName = ../resolve.file.uri

      Instead is taking ".." as the parent directory not as navigation to the parent directory.
      The filesystem should be able to resolve the path to the parent directory and set root as the ultimate parent directory as well.

      ../resolve.file.uri
      

      and

      /resolve.file.uri
      

      Should be resolved to the same file, setting the file system root as the last parent directory.

      This:

      root.getDirectory(//someDir/someSubDir, function (dir) {
      dir.getFile("../valid.file.txt", .. );
      }, ..);
      

      Should result this:

      "//someDir/valid.file.txt"
      

      Navigation to parent directories should be supported.

      Attachments

        Activity

          People

            martin.c.glez.glez Martin Gonzalez
            martin.c.glez.glez Martin Gonzalez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: