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

Android plugin file: resolveLocalFileSystemURL produce incorrect value

    XMLWordPrintableJSON

Details

    Description

      On android resolveLocalFileSystemURL sets isDirectory and isFile properties based on argument URL having trailing slash, and not on actual object type. See attached test program, which currently outputs the following:

      cdvfile://localhost/temporary/tst is file
      cdvfile://localhost/temporary/tst/ is directory

      Correct output shall be:

      cdvfile://localhost/temporary/tst is directory
      cdvfile://localhost/temporary/tst/ is directory

      Attachments

        1. index.js
          1 kB
          vldmrrrr

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vldmrrr vldmrrrr
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: