cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergio Talente (JIRA)" <>
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
             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

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message