generate material index based on files in folder