indexer: only print one line per file
index: only report non-empty files