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

checkFile error on non-existent file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-plugin-file
    • Labels:
      None
    • Environment:

      Android 6.0

      Description

      A call to File.checkFile() on a non-existent file results in a callback error with code NOT_FOUND_ERR.

      The function specification of checkFile() says:

      "Returns a Promise that resolves with a boolean or rejects with an error."

      Even if it is not further clarified in the specification, is almost intuitive expecting that it should return a Promise "false" if the file doesn't exist, instead of resulting in the NOT_FOUND_ERR.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sertal70 Sergio Talente
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: