* Test for the existence of a file in a directory * * \param[in] name Name of the file to be tested for. * * The calling instance must be an open directory file. * * dirFile.exists("TOFIND.TXT") searches for "TOFIND.TXT" in the directory * dirFile. * * \return true if the file exists else false. */
| 230 | * \return true if the file exists else false. |
| 231 | */ |
| 232 | bool SdBaseFile::exists(const char *name) { |
| 233 | SdBaseFile file; |
| 234 | return file.open(this, name, O_READ); |
| 235 | } |
| 236 | |
| 237 | /** |
| 238 | * Get a string from a file. |
no test coverage detected