import os
for d, dirs, files in os.walk('c:/djangay'):
output = 'Директория: {0}'.format(d)
if files:
output += '; Файлы: {0}'.format(', '.join(files))
print(output)
aW1wb3J0IG9zCmZvciBkLCBkaXJzLCBmaWxlcyBpbiBvcy53YWxrKCdjOi9kamFuZ2F5Jyk6CiAgICBvdXRwdXQgPSAn0JTQuNGA0LXQutGC0L7RgNC40Y86IHswfScuZm9ybWF0KGQpCiAgICBpZiBmaWxlczoKICAgIAlvdXRwdXQgKz0gJzsg0KTQsNC50LvRizogezB9Jy5mb3JtYXQoJywgJy5qb2luKGZpbGVzKSkKICAgIHByaW50KG91dHB1dCk=