AnkiSharp icon indicating copy to clipboard operation
AnkiSharp copied to clipboard

Error parsing of an apkg file causes currupt state

Open Jiyuu opened this issue 6 years ago • 0 comments

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.'

Jiyuu avatar Jun 09 '19 02:06 Jiyuu