MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / exists

Method exists

Marlin/src/sd/SdBaseFile.cpp:232–235  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

230 * \return true if the file exists else false.
231 */
232bool 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.

Callers 14

M413Method · 0.45
_splitEntryDataMethod · 0.45
splitIco.pyFile · 0.45
makeIco.pyFile · 0.45
search_compilerFunction · 0.45
download_mks_assetsFunction · 0.45
copy_mks_assetsFunction · 0.45
simulator.pyFile · 0.45
fetch_exampleFunction · 0.45
back_up_configFunction · 0.45

Calls 1

openMethod · 0.45

Tested by

no test coverage detected