I've found that manually deteting an attachment (i.e. from the filesystem) causes the sync_waliki command to fail. Is there anyway to change its behaviour so the corresponding database entry is deleted if tge file is not found and make the db consistent with the filesystem?
On a related note, is it possible to make the attachments directory the same as the data directory, so attachments are saved in the same location as the markup files? I tried it one, and it seemed to screw up the db consistency, but I did not pursue further.