exists()
描述
檢查指定的檔案或是資料夾是否存在 MicroSD 卡。
語法
SD.exists(filename)
參數
filename
:要測試是否存在的檔案或資料夾路徑,路徑應該要以 “/” 分隔資料夾名稱
回傳
bool
:如果指定的檔案或是資料夾存在則回傳 true
,反之回傳 false
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.