tobozo / ESP32-targz

🗜️ An Arduino library to unpack/uncompress tar, gz, and tar.gz files on ESP32 and ESP8266
Other
118 stars 15 forks source link

Overwrite the file #7

Closed workpage2 closed 3 years ago

workpage2 commented 3 years ago

Do I have to delete the old versions of the files before unpacking, or will they be safely overwritten?

tobozo commented 3 years ago

this library was written with the assumption that the behaviour of fs::FS when opening an existing file with the FILE_WRITE flag is to truncate that file

please let me know if you observe a different result

tobozo commented 3 years ago

closing this as inactive, feel free to reopen if you find ou it's not safely overwritten