a/b.txt a/c.txt a/d/e.txt a/d/f.txt
Here is a list comprehension that creates that list
import os assets_directory = "assets" files = [os.path.join(root, name) for root, dirs, files in os.walk(assets_directory) for name in files] for f in files: print(f)
Output:
assets/util.js assets/favicon.png assets/mywork/index.html assets/mywork/trainingcover.png assets/css/adapt.css assets/css/screen.css