[fix] only read files and no directories
[test] omit subdirs