adding folder structure generation limiting the number of files in one folder