how to check if image was actually present on disk before using find

Asked by Chetan

is there a way to check if image is present in any of the image path before searching?

reason:
folks sometime forget to check in the image and objects return none which makes then feel image did not match. we want to know the exact cause such that if image is not found in disk itself then we throw this error before hand

current code match=SearchRegion.findBest(name)

Question information

Language:
English Edit question
Status:
Expired
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
abuzer stream (abuzerstream) said :
#2

Actually you can run the Run command from the terminal
"java -jar /path/sikulix.jar -r test.sikuli -c"
  If you run it like this, before the test starts, it will show you the images that are not on the disk but that you want to use (in the terminal).