mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 05:06:39 +01:00
ESP: Delete files after transfer where requested
Beyond around 20 APs the littleFs will no longer provide enough space to add .pending files. The original .raw files are premarily held to be able to send them to the web interface. In those rare cases where this is not strictly needed we can allow specific setups to auto-delete them. Signed-off-by: Mimoja <git@mimoja.de>
This commit is contained in:
@@ -384,7 +384,11 @@ void processXferComplete(struct espXferComplete* xfc, bool local) {
|
||||
LittleFS.remove(dst_path);
|
||||
}
|
||||
if (LittleFS.exists(src_path)) {
|
||||
#ifndef REMOVE_RAW
|
||||
LittleFS.rename(src_path, dst_path);
|
||||
#else
|
||||
LittleFS.remove(src_path);
|
||||
#endif
|
||||
}
|
||||
|
||||
time_t now;
|
||||
|
||||
Reference in New Issue
Block a user