MCPcopy Create free account
hub / github.com/SmingHub/Sming / close

Method close

Sming/Libraries/Spiffs/src/FileSystem.cpp:315–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315int FileSystem::close(FileHandle file)
316{
317 CHECK_MOUNTED()
318
319 if(file < 0) {
320 return Error::InvalidHandle;
321 }
322
323 int res = flushMeta(file);
324 int err = SPIFFS_close(handle(), file);
325 if(err < 0) {
326 res = translateSpiffsError(err);
327 }
328 partition.sync();
329 return res;
330}
331
332int FileSystem::eof(FileHandle file)
333{

Callers 4

~AnimatedGifTaskMethod · 0.45
tbFunction · 0.45
runtest.pyFile · 0.45
runtest.pyFile · 0.45

Calls 2

translateSpiffsErrorFunction · 0.85
syncMethod · 0.45

Tested by

no test coverage detected