When moving issues, create target directories if they do not already exist.
This commit is contained in:
parent
08b9df2086
commit
520833d703
@ -1,6 +1,6 @@
|
||||
# Package
|
||||
|
||||
version = "4.9.1"
|
||||
version = "4.9.2"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Personal issue tracker."
|
||||
license = "MIT"
|
||||
|
@ -170,6 +170,7 @@ proc loadIssueById*(tasksDir, id: string): Issue =
|
||||
raise newException(KeyError, "cannot find issue for id: " & id)
|
||||
|
||||
proc store*(issue: Issue, withComments = false) =
|
||||
discard existsOrCreateDir(issue.filePath.parentDir)
|
||||
writeFile(issue.filepath, toStorageFormat(issue, withComments))
|
||||
|
||||
proc store*(tasksDir: string, issue: Issue, state: IssueState, withComments = false) =
|
||||
|
@ -1 +1 @@
|
||||
const PIT_VERSION* = "4.9.1"
|
||||
const PIT_VERSION* = "4.9.2"
|
Loading…
x
Reference in New Issue
Block a user