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

Error parsing of an apkg file causes currupt state #5

@Jiyuu

Description

@Jiyuu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions