I'm writing a program which is supposed to go deeper and deeper in a specific directory. If the elements of current directory are files, write down their names. else - go deeper in them and write out files from the deeper directories. I'm near solution, the problem is-i don't know how to tell Python to do:

If the directory is empty, pass it.