Skip to content

console.editfile gives error if files doesn't exist.

My error log contains:

term Node 1 !ERROR 2 (No such file or directory) in writemsg.cpp line 1337 (editfile) creating "/sbbs/data/user/0664.sshkeys" access=-1

It looks like this is created from the following line:

console.editfile(userSSHKeyFilename);

The jsobj documents say that editfile should create the file if it doesn't exist.