AnkiSharp
AnkiSharp copied to clipboard
Error parsing of an apkg file causes currupt state
if opening an apkg file fails after extraction, a failure to parse it causes it to leave a bunch of files in the /tmp folder, later if another run is made the code exists because the leftover files conflict with the new run's attampt to extract the files
https://github.com/AnkiTools/AnkiSharp/blob/master/Anki.cs#L433
this is the line that throws an exception in this case
System.IO.IOException: 'The file 'c:\dev\ankitest\bin\Debug\tmp\0' already exists.'