in reply to how do I remember the trailing /

I dont think that will work because when I do that
I dont know what entries are files or directorys

my goal with the program is to enter a directory
and all the sub directorys and create a file in each
that contains the files and directorys in that directory

Originally posted as a Categorized Answer.