down vote favorite I am trying to simulate a directory structure iteration to flatten a list I defined a directory and a file as:

down vote