re #17 as there's no easy portable way to list files in a directory, we keep a list of them in a sql table, that should do the trick for most of usage