inline filesInFolder to avoid duplicate symbol