Unpacking will fail if file already exists. Tested on Windows.
Steps to reproduce:
install extension - unpacking will happen, everything works
close thunderbird
open thunderbird again
extension will trigger unpacking again, will try to overwrite existing files and this will fail, unpacked files are ready-only, so access is denied, extension crashes
Solution - skip existing files when unpacking.
Files will not change. So overwriting is not necessary. Also this saves some IO overhead and time on startup.
Unpacking will fail if file already exists. Tested on Windows.
Steps to reproduce:
Solution - skip existing files when unpacking.
Files will not change. So overwriting is not necessary. Also this saves some IO overhead and time on startup.