Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Error parsing of an apkg file causes currupt state #5

Open
Jiyuu opened this issue Jun 9, 2019 · 0 comments
Open

Error parsing of an apkg file causes currupt state #5

Jiyuu opened this issue Jun 9, 2019 · 0 comments

Comments

@Jiyuu
Copy link

Jiyuu commented Jun 9, 2019

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 Jiyuu changed the title error parsing of an apkg file causes currupt state Error parsing of an apkg file causes currupt state Jun 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant