| 100 | |
| 101 | #ifndef SD_CARD_ONLY |
| 102 | void 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 |
no test coverage detected