MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / copyFile

Function copyFile

ESP32_AP-Flasher/src/storage.cpp:102–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101#ifndef SD_CARD_ONLY
102void copyFile(File in, File out) {
103 Serial.print("Copying ");
104 Serial.print(in.path());
105 Serial.print(" to ");
106 Serial.println(out.path());
107
108 size_t n;
109 uint8_t buf[64];
110 while ((n = in.read(buf, sizeof(buf))) > 0) {
111 out.write(buf, n);
112 }
113}
114
115#ifdef HAS_SDCARD
116

Callers 1

copyBetweenFSFunction · 0.70

Calls 4

printlnMethod · 0.80
printMethod · 0.45
readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected