create Utils::getFilenamesInFolder() function to factorize some code used in most views