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

Method close

Marlin/src/sd/SdBaseFile.cpp:106–110  ·  view source on GitHub ↗

* Close a file and force cached data and directory information * to be written to the storage device. * * \return true for success, false for failure. * Reasons for failure include no file is open or an I/O error. */

Source from the content-addressed store, hash-verified

104 * Reasons for failure include no file is open or an I/O error.
105 */
106bool SdBaseFile::close() {
107 bool rtn = sync();
108 type_ = FAT_FILE_TYPE_CLOSED;
109 return rtn;
110}
111
112/**
113 * Check for contiguous file and return its raw block range.

Callers 15

mkdirMethod · 0.45
openMethod · 0.45
printLongPathMethod · 0.45
getLongPathMethod · 0.45
mountMethod · 0.45
endFilePrintNowMethod · 0.45
fileExistsMethod · 0.45
closefileMethod · 0.45
diveToFileMethod · 0.45
fileHasFinishedMethod · 0.45
jobRecoverFileExistsMethod · 0.45
M503Method · 0.45

Calls 1

syncFunction · 0.85

Tested by

no test coverage detected