Solved: Auto import a directory when a file arrives?

Thanks! Just tested. It was working for about 3 shots and now seems to crash. Possibly the Wifi is a little flaky tonight but seems to interrupt the copy process somehow. Doesn’t corrupt the file but the script that syncs the files from the flashair tells me it has sensed an interruption; didn’t see that before. Or at least I don’t recall it being so regular.

Here’s what the diagnostics are outputting leading into the crash:

667.814822 LUA number of files is 0
668.814932 LUA view in darkroom is true
668.856177 LUA L1009676.DNG

668.856204 LUA number of files is 1
669.856405 LUA view in darkroom is true
669.856488 LUA L1009676.DNG
669.898344 LUA checking if file is complete
670.075816 LUA not yet complete
672.256660 LUA not yet complete
674.445379 LUA not yet complete
676.628365 LUA not yet complete
678.808952 LUA not yet complete
681.001953 LUA not yet complete
683.195816 LUA not yet complete
685.374979 LUA not yet complete
687.568344 LUA file is complete
687.568382 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009676.DNG
687.577365 LUA L1009676.DNG imported with id 4266
688.088278 LUA L1009667.DNG
L1009668.DNG
L1009669.DNG
L1009670.DNG
L1009671.DNG
L1009672.DNG
L1009673.DNG
L1009674.DNG
L1009675.DNG
L1009676.DNG
688.088324 LUA * * * excessive diff detected * * *
688.088330 LUA * * * Old File List * * *
688.088333 LUA L1009676.DNG
L1009667.DNG
L1009668.DNG
L1009669.DNG
L1009670.DNG
L1009671.DNG
L1009672.DNG
L1009673.DNG
L1009674.DNG
L1009675.DNG
688.088341 LUA * * * New File List * * *
688.088582 LUA ERROR : …dmin/.config/darktable/lua/flashairtether/filetether.lua:155: bad argument #-1 to ‘print_log’ (string expected, got nil)
stack traceback:
[C]: in ?
[C]: in function ‘darktable.print_log’
…dmin/.config/darktable/lua/flashairtether/filetether.lua:155: in upvalue ‘start_polling’
…dmin/.config/darktable/lua/flashairtether/filetether.lua:212: in function <…dmin/.config/darktable/lua/flashairtether/filetether.lua:209>
[C]: in ?