Get a list of files with allowed extensions contained in a given directory