add flush to filesystem before closing write file.

This commit is contained in:
Thomas Göttgens
2023-04-14 10:55:05 +02:00
parent b43a5bc4f8
commit 309d4fc7f2
5 changed files with 12 additions and 2 deletions

View File

@@ -34,6 +34,7 @@ bool copyFile(const char *from, const char *to)
f2.write(cbuffer, i);
}
f2.flush();
f2.close();
f1.close();
return true;