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

checkFile error on non-existent file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • cordova-plugin-file
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: