Bugfix dirwriter, and added more methods to blobtash.DB Lua helper