Check if file exist on SD card

Hi,
I'm trying to check if a file name exist on the SD card so that I won't overwrite it. From what I saw, the Sdfile class doesn't have the exists() method - so is there a different way to check for this?

I tried to use SD.exists(filename) but it doesn't seem to work well. Is there any library I need to include in the code? Do I need to add the dir name to the filename somehow?
I will appreciate any help with this.
Thanks,

Gilad

Comments

Sign In or Register to comment.