Reference Language | Libraries | Comparison | Changes
Tests whether a file or directory exists on the SD card.
SD.exists(filename)
filename: the name of the file to test for existence, which can include directories (delimited by forward-slashes, /)
true if the file or directory exists, false if not
Corrections, suggestions, and new documentation should be posted to the Forum.
This reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License and is based on the Arduino reference. Code samples in the reference are released into the public domain.