ivan-lednev / obsidian-task-archiver

Archive completed tasks in your Obsidian vault (plus other org-mode-like features)
MIT License
109 stars 12 forks source link

When archiving to a file with path, file creation fails #27

Closed Unpreditable closed 1 year ago

Unpreditable commented 1 year ago

The issue happens when path is not created, e.g., Archive/% archive and Archive does not exits. If Path exists, file gets created no problem, so just need to check path and create that too.

The reason it's a bit issue - script first deletes completed tasks and then fails at file creation. This means tasks can be deleted before they are copied over, and that is not acceptable data loss.

ivan-lednev commented 1 year ago

Hello, @Unpreditable! Thank you for your input! I fixed the issue in 0.12.1.