If main reminder file is a directory and AppendFile does not exist,

create AppendFile.
This commit is contained in:
David F. Skoll
2008-04-16 21:54:05 -04:00
parent a8a09a905e
commit 4365e580ee

View File

@@ -208,6 +208,12 @@ proc Initialize {} {
exit 1
}
if {[file isdirectory $ReminderFile] && ! [file exists $AppendFile]} {
if {![catch {close [open "$AppendFile" "a"]}]} {
tk_dialog .error "Created File" "Created blank file `$AppendFile'" info 0 "OK"
}
}
if {! [file writable $AppendFile]} {
tk_dialog .error Error "Can't write reminder file `$AppendFile'" error 0 Ok
exit 1