SDClass::exists()

名称

SDClass::exists()

説明

ファイルもしくはディレクトリがSDカード上に存在するかを調べる。

書式

boolean SDClass::exists(const char *filepath);

boolean SDClass::exists(const String &filepath)

引数

filepath存在確認を行うファイルの名称。ディレクトリを含めてもいい(その場合はファイル名の前に/を入れる)。

戻り値

ファイルもしくはディレクトリが存在する場合1、存在しない場合0。

オリジナルのページ

https://www.arduino.cc/reference/en/libraries/sd/exists/

最終更新日

January 7, 2024

inserted by FC2 system