List<FileSummary> output = new ArrayList<FileSummary>();
SQLiteStatement stmt = db.prepare("select fid, path, fname from Files WHERE crawlid = ? AND length(?) > length(path||fname) AND isDir = 'True' AND replace(?, path||fname, '') LIKE '/%'");
try {
Path targetDir = new Path(targetDirStr);
if (targetDir.getParent() != null) {
stmt.bind(1, crawlid).bind(2, targetDir.toString()).bind(3, targetDir.toString());
while (stmt.step()) {
//Path p = new Path(stmt.columnString(0) + stmt.columnString(1));
output.add(new FileSummary(FSAnalyzer.this, stmt.columnLong(0)));
}
}