How to check if file exists?


#1

Hi All,

Could you please give me a hand and tell how to set blocks to check if a file is stored on sd? And if so load it as image and if not do something else.
I tried all, I think, but no luck.

Thank you,
Jacek


#2

@Big_Red_Puzzle have you checked blocks in File component?


#3

Yes.
There is “is file exists” block - how excatcly should it be set?


#4

Got it.
Strange but “File1” blocks does not work. I used “TaifunFile1” and all is just fine.


#5

@Big_Red_Puzzle show screenshot of blocks that didn’t work


#6

@Big_Red_Puzzle I just tested and it works with no problem - see below. What path are you using?
image


#7

Here it is:

image