cordova-issues mailing list archives

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

    [ 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message