created function for creating the foldersandfiles