The code I have now:
import os Tree = {} Tree = os.listdir(\'Dir\')
>>> print(Tree) [\'New Folder\', \'Textfile1.txt\', \
Use os.walk:
>>> import os >>> print(os.walk.__doc__) Directory tree generator. For each directory in the directory tree rooted at top (including top itself, but excluding '.' and '..'), yields a 3-tuple ...