cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergio Talente (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-12444) checkFile error on non-existent file
Date Fri, 10 Feb 2017 11:34:41 GMT
Sergio Talente created CB-12444:
-----------------------------------

             Summary: checkFile error on non-existent file
                 Key: CB-12444
                 URL: https://issues.apache.org/jira/browse/CB-12444
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin File
         Environment: Android 6.0
            Reporter: Sergio Talente


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.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message