[ 
https://issues.apache.org/jira/browse/CB-12444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15861799#comment-15861799
 ] 

Kerri Shotts commented on CB-12444:
-----------------------------------

Ah; I think you're referring to this: 
https://github.com/driftyco/ng-cordova/blob/master/src/plugins/file.js#L64

This is a third-party wrapper around the File API, so I would report your 
suggestion to them.

Closing.

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to