function changeColor, resetColor created - STAT created in the beginning of loop - getpath called just once
color working on ls and ls -a