sketch for multi-file directory poller