Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
None
-
None
-
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.