MCPcopy Create free account
hub / github.com/BruceDevices/firmware / md5File

Function md5File

src/core/sd_functions.cpp:446–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446String md5File(FS &fs, String filepath) {
447 if (!fs.exists(filepath)) return "";
448 String txt = readSmallFile(fs, filepath);
449 MD5Builder md5;
450 md5.begin();
451 md5.add(txt);
452 md5.calculate();
453 return (md5.toString());
454}
455
456String crc32File(FS &fs, String filepath) {
457 if (!fs.exists(filepath)) return "";

Callers 2

loopSDFunction · 0.85
md5CallbackFunction · 0.85

Calls 3

readSmallFileFunction · 0.85
calculateMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected