private DirWatcher createWatcher(File dir, final String regex,
final int recurseDepth) {
// 250 ms between checks
DirWatcher watcher = new DirWatcher(dir, new RegexFileFilter(regex), 250);
watcher.addHandler(new DirChangeHandler() {
Map<String, Cursor> curmap = new HashMap<String, Cursor>();
@Override
public void fileCreated(File f) {
if (f.isDirectory()) {